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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.IO | |
import Control.Concurrent (threadDelay) | |
a i = do | |
threadDelay 1000000 | |
print $ show i | |
a (i + 1) | |
main = do | |
a 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type LineNumber = Int | |
type ColumnNumber = Int | |
data Identifier = Identifier { | |
typeId :: String | |
, value :: String | |
, position :: (LineNumber, ColumnNumber) | |
, children :: [Identifier] | |
} deriving (Show) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Step 1 | |
# To create a B you have to create a A first | |
mutation { | |
createA( | |
title: "first A!" | |
) { | |
id | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pythonw ./index.py | |
# clear terminal !!! Cool | |
# print("\033[H\033[J") | |
CRED = '\033[91m' | |
CEND = '\033[0m' | |
def logError(msg, info): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "inject script", | |
"description": "", | |
"version": "1.0", | |
"permissions": [ | |
"tabs", "http://*/*", "https://*/*" | |
], | |
"browser_action": { | |
"default_title": "Set this page's color.", | |
"default_icon": "icon.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simpleM.columnsLength() | |
// returns number of available colums |
NewerOlder