$ npm cache clean -f
$ npm install -g n
$ n stable
##update npm
$ npm install npm@latest -g
simpleM.columnsLength() | |
// returns number of available colums |
function get(queryURL) { | |
var request = NSMutableURLRequest.new(); | |
[request setHTTPMethod:@"GET"]; | |
[request setURL:[NSURL URLWithString:queryURL]]; | |
var error = NSError.new(); | |
var responseCode = null; | |
var oResponseData = [NSURLConnection sendSynchronousRequest:request returningResponse:responseCode error:error]; |
{ | |
"name": "inject script", | |
"description": "", | |
"version": "1.0", | |
"permissions": [ | |
"tabs", "http://*/*", "https://*/*" | |
], | |
"browser_action": { | |
"default_title": "Set this page's color.", | |
"default_icon": "icon.png", |
apm install docblockr
apm install minimap
apm install atom-typescript
apm install monokai
apm install atom-beautify
apm install atom-clock
apm install git-blame
apm install pigments
apm install language-haskell
# pythonw ./index.py | |
# clear terminal !!! Cool | |
# print("\033[H\033[J") | |
CRED = '\033[91m' | |
CEND = '\033[0m' | |
def logError(msg, info): |
# Step 1 | |
# To create a B you have to create a A first | |
mutation { | |
createA( | |
title: "first A!" | |
) { | |
id | |
} | |
} |
type LineNumber = Int | |
type ColumnNumber = Int | |
data Identifier = Identifier { | |
typeId :: String | |
, value :: String | |
, position :: (LineNumber, ColumnNumber) | |
, children :: [Identifier] | |
} deriving (Show) |
import System.IO | |
import Control.Concurrent (threadDelay) | |
a i = do | |
threadDelay 1000000 | |
print $ show i | |
a (i + 1) | |
main = do | |
a 0 |
const headToTail = (i, v) => (v.substring(i) + v.substring(0, i)); | |
const createSharedId = str => str | |
.split('') | |
.reduce((acc, a) => ([...acc, headToTail(acc.length, str.toLowerCase())]), []) | |
.sort()[0]; | |
const valueReducer = (acc, { src, sharedId }) => (typeof acc[sharedId] === 'undefined') | |
? { ...acc, [sharedId]: [src] } | |
: { ...acc, [sharedId]: [ ...acc[sharedId], src] }; |