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 / 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 / loadCsv.js
Last active March 8, 2017 19:34
ALL THE PROMISES
'use strict';
//reqs
const fs = require('fs');
const path = require('path');
//exports
module.exports = {
csv2obj: csv2obj
}
@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 = git@github.com: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
#recursive(-r) search which matches any case(-i) and returns the path/file name(-l) in the c:/Code directory excluding any node_module directories
grep -rli --exclude-dir=node_modules "bi-dev-sns-data-process" c:/Code
#now excluding all node_modules and .git directories
grep -rli --exclude-dir={node_modules,.git} "bi-dev-sns-data-process" c:/Code
@goody
goody / README.md
Last active July 15, 2016 19:59
Line chart with tips

init

@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
@goody
goody / data.json
Last active June 3, 2016 15:30
D3 Zoom
{"data":{"filters":{"tenant":"40181370-a2b8-11e5-aa93-17928327d92e","site":"448e74c9-5c0f-4fab-bebc-cd552e67f545","departments":["00000000-0000-0000-0000-000000000000"],"tests":{"instruments":[],"types":[],"codes":[],"priorities":[],"origin":[],"fluidTypes":[],"workforceCategories":[],"tatTarget":[]},"dataView":"","isAdhoc":false,"timeframeCode":"8","timeframeFrom":1451606400,"timeframeTo":1459382400,"timeframe":{"timeframeCode":"8","selectedDateRange":{"from":1451606400,"to":1459382400},"comparisonDateRange":{"from":1443657600,"to":1451520000}},"includePrevious":false},"widgets":{"tat":{"tatByTarget":{"tatGoal":75,"series":{"label":{"symbol":"tat","defaultText":"TAT"},"valueUnit":{"symbol":"minutes","defaultText":"Minutes"},"values":[{"percentTargetAchieved":{"current":12.5,"previous":2.7199999999999998},"tatTargetInMinutes":60,"minutesToReachGoal":300},{"percentTargetAchieved":{"current":31.830000000000002,"previous":32.33},"tatTargetInMinutes":120,"minutesToReachGoal":191},{"percentTargetAchieved":{"curren
@goody
goody / index.html
Last active May 27, 2016 18:11
Native Sticky THEAD
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Sticky THEAD</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div style=" margin:20px;">
<div id="floating">