{ "telemetry.enableCrashReporter": false, "telemetry.enableTelemetry": false, "workbench.activityBar.visible": false, "editor.fontSize": 15.5, "editor.fontFamily": "Monaco Lives For Powerline", "editor.fontLigatures": true, "editor.wordWrap": "on", "editor.wordWrapColumn": 90, "editor.suggest.showStatusBar": true,
This file contains 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
data Tree a = Leaf a | Node a [Tree a] | |
scanDir :: String -> IO (Tree String) | |
scanDir path = do | |
contents <- getDirectoryContents path `catch` const (return []) | |
let files = sort . filter (`notElem` [".", ".."]) $ contents | |
let pathsAndFiles = zip (repeat path) files | |
tree <- forM pathsAndFiles $ \(path, file) -> do | |
isDirectory <- doesDirectoryExist path | |
if isDirectory |
This file contains 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
-- parseExpr :: something -> Either ParseError Expression | |
convert :: String -> Either String String | |
convert input = case parseExpr input of | |
Left err -> Left $ show err | |
Right x -> Right $ show x | |
-- Want: | |
convert = magicfunction show $ parseExpr |
This file contains 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
/** | |
EXTNull | |
Experimental | |
EXTNull is a subclass of NSNull that acts more like nil. | |
Calling unrecognized methods on EXTNull *will not* throw | |
a NSInvalidArgumentException but again return EXTNull. | |
This file contains 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
<dict> | |
<key>begin</key> | |
<!-- By default, maximum number of spaces before the bullet | |
character is 3. To support multiple nested lists, I changed | |
it to infinite. --> | |
<string>^[ ]*([*+-])(?=\s)</string> | |
<key>captures</key> | |
<dict> | |
<key>1</key> |
This file contains 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
"use strict" | |
module.exports = (grunt) -> | |
grunt = (require 'grunt-utilities') grunt | |
# Note that for performance reasons we're only matching one level | |
# down: 'test/spec/{,*/}*.js'. If you want to match all subfolders, | |
# use 'test/spec/**/*.js' | |
grunt.initConfig | |
yeoman: |
This file contains 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
⚡ gn watch:main annotations-client master * | |
Running "watch:main" (watch) task | |
Waiting...OK | |
>> File "app/abc.coffee" changed. | |
Running "coffee:compile" (coffee) task | |
File tmp/javascript/app/abc.js created. | |
Running "file_did_change" task |
This file contains 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
var RequestShortener = require("webpack/lib/RequestShortener"); | |
var _ = require("lodash"); | |
/** | |
* TODO Docs | |
* @example new NamedModulesPlugin(/^\.\/app\/(viewmodels|records|adapters)/, /^\.\/app\/(.*)\.js$/) | |
*/ | |
function NamedModulesPlugin(fileWhitelistRegex, replacementRegex) { | |
this.fileWhitelistRegex = fileWhitelistRegex; | |
this.replacementRegex = replacementRegex; |
This file contains 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 { merge } from 'lodash' | |
// This module allows us to completely customize all of Material UI's JSS stylesheets | |
// to define our own theme. | |
// | |
// Note that you Material UI's JSS is often tied to application logic and you may | |
// deviate from the official Material UI spec. | |
// | |
// Unlike using the `overrides` feature of jss-theme-reactor, here you have access to | |
// the original calculated styles and theme. Notably you can do deep merge (lodash.merge) |
This file contains 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
PROMPT="${pwd} ${git} | |
%(?..)%B›%b%{$reset_color%} " | |
# Gun safety lock | |
alias rm "rm -i" | |
# General UNIX | |
alias cp='cp -iv' | |
alias df='df -h' | |
alias du='du -h' |
OlderNewer