Skip to content

Instantly share code, notes, and snippets.

View gaybro8777's full-sized avatar
💭
Im not gay. I'm just getting back at my dad for not getting me an xbox

Michael Corrado gaybro8777

💭
Im not gay. I'm just getting back at my dad for not getting me an xbox
View GitHub Profile
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@gaybro8777
gaybro8777 / PULL_REQUEST_TEMPLATE.md
Created June 2, 2018 17:23 — forked from pamelafox/PULL_REQUEST_TEMPLATE.md
The pull request template for Woebot.

High-level description of change

Why you made these changes (how it helps us or our users)

Are there performance implications for this change?

REPLACE THIS: Please profile using time/timeEnd any potentially time-taking changes. Then profile using node profiler to identify what aspects take most time.

Have you added tests to cover this new/updated code?

@gaybro8777
gaybro8777 / GithubClient.gs
Created June 2, 2018 17:23 — forked from pamelafox/GithubClient.gs
Google Apps Script for committing a file to Github Repo
/* A bare-bones GithubClient, just used for commits */
function GithubClient(owner, repo, username, passwordOrToken) {
this.owner = owner;
this.repo = repo;
this.username = username;
this.passwordOrToken = passwordOrToken;
}
/*
@gaybro8777
gaybro8777 / MediumFeedEater.js
Created June 2, 2018 17:23 — forked from pamelafox/MediumFeedEater.js
Medium Feed Eater for HabitLab
const $ = require('jquery');
require_component('habitlab-logo-v2');
require_component('paper-button');
function removeFeed() {
var re = new RegExp('medium.com\/\??.*$');
if (!re.test(window.location.href)) {
return;
}
$('.streamItem').css('display', 'none');
@gaybro8777
gaybro8777 / ThinkBeforeYouTweet.js
Created June 2, 2018 17:23 — forked from pamelafox/ThinkBeforeYouTweet.js
ThinkBeforeYouTweet - a Nudge for HabitLab to prompt reflection before tweeting
// Nudge for twitter.com for HabitLab
// You can use it by installing HabitLab for Chrome,
// and then in settings, click Code your own Nudge and paste this code in
// TODOS:
// Make a version for TweetDeck
// Remove nudgeContainer once tweet is successfully sent
const $ = require('jquery');
require_component('habitlab-logo-v2');
@gaybro8777
gaybro8777 / nfl_picks.sql
Created June 2, 2018 17:26 — forked from pamelafox/nfl_picks.sql
nfl_picks.sql
/*
1st 3 rounds of the NFL 2015 Draft
Collected by: https://www.khanacademy.org/profile/BobbyandKaren/
*/
CREATE TABLE picks(
id INTEGER PRIMARY KEY,
pick_number INTEGER,
name TEXT,
college TEXT,
/* Programming languages
Collected by: https://www.khanacademy.org/profile/trekcelt/programs
*/
CREATE TABLE languages(
id INTEGER PRIMARY KEY,
name TEXT,
primary_developer TEXT,
launched INTEGER,
oop INTEGER /* Whether or not they're Object-oriented */
);
@gaybro8777
gaybro8777 / magnifico.html
Created June 2, 2018 17:26 — forked from pamelafox/magnifico.html
magnifico example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>New Webpage</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.0.0/magnific-popup.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="
https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.0.0/jquery.magnific-popup.js"></script>
<a class="image-link" href="https://www.kasandbox.org/programming-images/animals/butterfly.png">Open popup!</a>
@gaybro8777
gaybro8777 / post-checkout
Created June 2, 2018 18:45 — forked from lyrixx/post-checkout
Git post checkout
#!/bin/bash
# Put this file at: .git/hooks/post-checkout
# and make it executable
# You can install it system wide too, see http://stackoverflow.com/a/2293578/685587
PREV_COMMIT=$1
POST_COMMIT=$2
NOCOLOR='\e[0m'