Skip to content

Instantly share code, notes, and snippets.

View goody's full-sized avatar
💭
rimraf

Scot Goodhart goody

💭
rimraf
  • Luminix Inc.
  • Chicago/Coachella Valley
View GitHub Profile
@goody
goody / gist:42b7735d4311c38a724da20030343845
Created March 11, 2019 20:29 — forked from spudbean/gist:1558257
Look of disapproval and other emoticons
ಠ_ಠ
( ͡° ͜ʖ ͡°)
¯\_(ツ)_/¯
(╯°□°)╯︵ ┻━┻
http://www.fileformat.info/convert/text/upside-down.htm
WRTTN http://wrttn.me/30dbfd/
Unicode Emoticons
@goody
goody / polyfill-ie11-nodelist-foreach.js
Created May 7, 2018 14:39 — forked from bob-lee/polyfill-ie11-nodelist-foreach.js
Polyfill for IE11 missing NodeList.forEach
if ('NodeList' in window && !NodeList.prototype.forEach) {
console.info('polyfill for IE11');
NodeList.prototype.forEach = function (callback, thisArg) {
thisArg = thisArg || window;
for (var i = 0; i < this.length; i++) {
callback.call(thisArg, this[i], i, this);
}
};
}
@goody
goody / React-Native-WebView-Cookies.js
Created December 1, 2017 20:45 — forked from xxxxlr/React-Native-WebView-Cookies.js
React Native Trick: Get Cookies of WebView without using any native modules such as react-native-cookies. Might be helpful for getting JWT while making OAuth2 👽
// @flow
import React, { Component } from 'react';
import {
WebView,
} from 'react-native';
class LoginScreen extends Component {
state = {
cookies : {},
@goody
goody / update-coapp.ps1
Created February 20, 2017 15:51 — forked from jonnybest/update-coapp.ps1
Powershell update script for multiple git repositories
$git = $env:programfiles+"\Git\cmd\git.cmd";
if (!$git) {
Write-Host "Something went wrong.
Please enter the path to git.cmd or git.exe:";
$git = Read-Host;
Set-Variable -Name git -Value $git;
}
ls -name -Exclude *.* | foreach {cd .\$_ ; .$git pull origin master ; cd ..}
Write-Host "Done.";
@goody
goody / pr.md
Created February 14, 2017 17:14 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@goody
goody / .block
Created January 18, 2017 21:17 — forked from mbostock/.block
Box Plots
license: gpl-3.0
@goody
goody / LICENSE
Created July 7, 2016 17:59 — forked from dfm/LICENSE
XKCD-style plots in d3
Copyright (c) 2012–2013 Daniel Foreman-Mackey
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all