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
git branch | grep -v "master" | xargs git branch -D |
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
<?php | |
include('./template-engine.php'); | |
// Use functions to add dynamic data in Components | |
function HtmlBasic ($headInner, $children) { | |
return html( | |
head($headInner), | |
body($children) | |
); | |
}; |
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
module F where | |
data Mappable a = A a | B a deriving (Show, Eq) | |
instance Functor Mappable where | |
fmap f (A x) = A (f x) | |
fmap f (B x) = B (f x) | |
-- Usage | |
a = A 3 |
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
Show hidden characters
{ | |
// Place your snippets for javascriptreact here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
"React Dump": { | |
"prefix": "DUMP", | |
"body": [ | |
"import React from 'react';", | |
"import PropTypes from 'prop-types';", |
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 sublime | |
import sublime_plugin | |
from datetime import datetime | |
class ExampleCommand(sublime_plugin.EventListener): | |
# def printInConsole(self, text): | |
# print(text) | |
def updateClock(self, view): | |
timeArr = str(datetime.now().time()).split(':', 3) |
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 sublime | |
import sublime_plugin | |
def getHtml(color, width): | |
html = ''' | |
<body id="my-plugin-feature"> | |
<style> | |
div.error , body , html { |
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
map.i <- function(fn, data) { | |
result <- c() | |
index <- 1 | |
for (value in data){ | |
result[index] <- fn(value, index) | |
index <- index + 1 | |
} | |
return(result) | |
} |
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
{ | |
"window.zoomLevel": 1, | |
"workbench.colorTheme": "Monokai", | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 13, | |
"editor.renderWhitespace": "all", | |
"editor.lineHeight": 24, | |
"files.trimTrailingWhitespace": true, | |
"editor.tabSize": 4, |
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
func reduceArray<A,T>( | |
accFunc f: (A, T) -> A | |
, value v: [T] | |
, startValue sV: A | |
) -> A { | |
if v.count == 0 { | |
return sV; | |
} |
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
originDataSrc <- "./data/survey_results_public.csv" | |
d <- read.csv(file = originDataSrc) | |
not.na <- function(context) { return(!is.na(context)) } | |
data.filter <- not.na(d$LanguageWorkedWith) & not.na(d$Gender) & d$Gender == "Female" | |
females <- d[data.filter,] | |
allLength <- length(d[,1]) |