Skip to content

Instantly share code, notes, and snippets.

View togakangaroo's full-sized avatar

George Mauer togakangaroo

View GitHub Profile
var addScript = url => {
document.open ()
document.write (`<script src="${url}"></script>`)
document.close ()
}
skewer.log ("to skewer")
// addScript (`https://cdnjs.cloudflare.com/ajax/libs/dio/2.1.1/dio.min.js`)
// addScript (`https://cdnjs.cloudflare.com/ajax/libs/dio/2.1.1/dio.js`)

It started with a desire to play around with function decorators and the concept of generators. It ended up opening into something that I think is quite a bit greater

What do I mean?

Observation:

You can talk about a 1s throttle like this:

@togakangaroo
togakangaroo / .spacemacs
Created August 23, 2016 19:38
spacemacs prfile
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
import React, { Component, createFactory } from 'react'
import { AppRegistry, StyleSheet, Text, View } from 'react-native'
const view = createFactory(View)
const text = createFactory(Text)
const styles = {
container: {
flex: 1,
justifyContent: 'center',
https://lists.w3.org/Archives/Public/www-talk/
http://1997.webhistory.org/www.lists/www-talk.1993q1/
https://eager.io/blog/the-languages-which-almost-were-css/
https://eager.io/blog/to-what-extent-did-marc-andreessen-invent-the-internet/
https://www.w3.org/Style/LieBos2e/history/
https://www.w3.org/People/Raggett/book4/ch02.html
http://alistapart.com/article/a-brief-history-of-markup
http://www.wired.com/2008/09/history_of_img_and_embed_tags/
http://home.snafu.de/tilman/mozilla/stomps.html
http://www.snee.com/bobdc.blog/2012/01/a-brief-opinionated-history-of.html
Import-Module pscx *>$null
$Pscx:Preferences['TextEditor'] = 'C:\Program Files\Sublime Text 3\subl.exe'
set-alias edit Edit-File -Scope Global
Set-Alias vim 'C:\Program Files (x86)\vim\vim74\vim.exe'
function Coalesce-Args {
(@($args | ?{$_}) + $null)[0]
}
function Change-ToNewDirectory($directoryName) {
mkdir $directoryName

Provider profile creation

* What does the page to set up a profile look like?
* How might the initial data entry work?
* Do profiles require moderation?
* How to indicate services provided?
	* What happens to older reviews if a service was added/dropped?
* Who can edit the page and how?
	* What happens if a provider stops updating a page?
* What if a provider goes out of business?
* What if a provider merges with another?
// [1, 2, 3, 4, 5] => [1, 2, 3, 4, 5]
// [1, 2, 3, 4, 5], 2 => [1, 2], [2, 3, 5]
// [1, 2, 3, 4, 5], 2, 3 => [1, 2], [3], [4, 5]
// [1, 2, 3, 4, 5], 0, 3 => [], [1, 2, 3], [4, 5]
function* splitUp(arr, firstPivot, ...otherPivots) {
if(firstPivot === undefined) {
yield arr
return
}
const head = arr.slice(0, firstPivot)
const noThisCheck = {noThisCheck: true}
const defaultComponent = { getInitialState: (() => ({}) )}
const createComponent = (objOrNot, ...otherAssignments) =>
React.createClass(thee(
assign({}, defaultComponent, ...otherAssignments, makeIntoConfigObject(objOrNot, 'render')),
noThisCheck
))
const makeIntoConfigObject = (objOrNot, propNameIfNotObj) =>
_.isPlainObject(objOrNot) ? objOrNot : makeObj(propNameIfNotObj, objOrNot)
@togakangaroo
togakangaroo / Parse-EstimationFile.ps1
Created May 31, 2015 13:42
Powershell script to parse an estimation file in an (indent, estimate, text[, description]) format in a csv-able structure
param(
[Parameter(Mandatory=$true)]$File
)
$lines = foreach($ln in Get-Content $File) {
if($ln -match '^(\t*)(.+)$') {
@{
originalText = $ln
text = $Matches[2]
indentLevel = $Matches[1].Length