#!/usr/bin/env python import re if __name__ == ‘__main__’: lines = [line.rstrip(‘\n’) for line in open(‘file.json’)] ids = set() for line … More
Author: camilamacedo86
[OpenShift] – How to change the default security policy to allow containers to run as root? ( Not recommended for production environments )
oc adm policy add-scc-to-user anyuid -z default
[OpenShift] – Installing and running Minishift (OpenShift single node) into a Mac with VirtualBox
Minishift provides an easy way to install and startup an OpenShift single node fast. Following the basic steps to do it … More
[English] – Some English expressions to say “I understand!”
I’m aware. I know what you mean. I see what you mean. I see. I get it. I got it. … More
[Utils] – How to don’t let your mac sleep?
Install the app caffeine. So, when you want to leave the computer but don’t want that it fails to sleep you can … More
[Tip] – Browser plugin to help you write in English
If you are looking for a plugin to help you write properly in English and correct your emails, documents and … More
[NodeJS] – How to manage Node versions installed locally? How to be able to switch the node version used?
To do it use nvm and install locally many NodeJS versions via the command nvm install <NodeJS> then choose the NodeJS version … More
[JAVA] – How to subscribe all values of an array?
Use the method Arrays.fill(<array>,<value>);` Following an example. import java.util.* int[] myArray = new int[4]; Arrays.fill(myArray, -1); The result of this … More
An algorithm which check a array and perform operations
Problem Given an array and an integer number perform the operations to increase or set the max value where if the value … More
An algorithm which returns the number of integers divisible by N in an sequenced interval [Y..Z].
Following the solution. public int algo(int Y, int Z, int N) { if ( Z==0 ) { return 1; } … More