If you come across this list by happen-stance on the internet, feel free to get started on them! Also, ping me so that I can help with the contributions!
- Run your personal bashrc remotely (add a layer of abstraction over SSH)
If you come across this list by happen-stance on the internet, feel free to get started on them! Also, ping me so that I can help with the contributions!
| angular.module('app', ['ui.router']) | |
| .config([ | |
| '$stateProvider', | |
| '$urlRouterProvider', | |
| function($stateProvider, $urlRouterProvider) { | |
| 'use strict'; | |
| $stateProvider | |
| .state('parent', { | |
| abstract: true, |
| function cb { | |
| git status | grep "On branch " | cut -c 11- | |
| } | |
| alias gpucb=' git push upstream $(cb)' | |
| alias gpocb=' git push origin $(cb)' | |
| alias gplucb='git pull upstream $(cb)' | |
| alias gplocb='git pull origin $(cb)' |
| // ES6 Array.prototype.fill polyfill: | |
| // ================================== | |
| // From Mozilla: http://mzl.la/1umD1jc | |
| if (!Array.prototype.fill) { | |
| Array.prototype.fill = function(value) { | |
| if (this == null) { | |
| throw new TypeError('this is null or not defined'); | |
| } | |
| var O = Object(this); | |
| var len = O.length >>> 0; |
| // loggers: | |
| var l = console.log.bind(window.console); | |
| var li = function(i){ | |
| return function() { | |
| l.apply(window.console, Array.prototype.slice.call(arguments,i,i+1)) | |
| }; | |
| }; | |
| var ln = function(n){ | |
| return function() { | |
| l.apply(window.console, Array.prototype.slice.call(arguments,0,n)) |
| let blacklists = ["https://mail.google.com/*","http://www.codeshare.io/*","https://inbox.google.com/*","https://www.shortcutfoo.com/*","https://binatechnologies.atlassian.net/*","https://onlinedispute.transunion.com/*","http://vim-adventures.com/*","http://student.kaptest.com/*","http://www.keybr.com/*", "http://configurator.input.club/"] |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Focus Example</title> | |
| <script type="text/javascript" src="EventUtil.js"></script> | |
| </head> | |
| <body> | |
| <p>The textbox will receive focus as soon as the page loads. You can then start typing.</p> | |
| <form method="post" action="javascript:alert('Form submitted!')" id="myForm"> | |
| <div> |
| #!/bin/bash | |
| FILE=$1; | |
| if [[ $FILE != *".gz"* ]] | |
| then | |
| echo "Please use a gzipped file" | |
| exit 1 | |
| fi |
| -- Read Titanic data & group rows by 'Pclass' | |
| titanic :: Frame <- Frame.readCsv(root + "titanic.csv") >>= groupRowsBy<int>("Pclass") | |
| -- Get 'Survived' column and count survival count per clsas | |
| -- runTransform :: Frame -> (Frame -> AnalyzeM Frame) -> IO Frame | |
| byClass <- runTransform titanic $ \df -> | |
| df.GetColumn<bool>("Survived") | |
| |> Series.applyLevel fst (\s -> | |
| -- Get counts for 'True' and 'False' values of 'Survived' | |
| series (Seq.countBy id s.Values)) |