Skip to content

Instantly share code, notes, and snippets.

View kylehotchkiss's full-sized avatar
👨‍💻
Javascript

Kyle Hotchkiss kylehotchkiss

👨‍💻
Javascript
View GitHub Profile
@kylehotchkiss
kylehotchkiss / deleteCloudapp
Last active August 29, 2015 14:06
delete all cloudapp entries
var all = (function all() {
jQuery("[type=checkbox]:not(:checked)").click();
jQuery("[name=commit]").click();
setTimeout(function() { window.location = jQuery("#pagination").find("a").last().attr("href"); all() }, 1000);
})();
@kylehotchkiss
kylehotchkiss / monster.js
Created December 30, 2014 22:40
monster commit
//
// Description
// Show a Monster Commit image
//
module.exports = function( robot ) {
robot.hear(/monster commit/i, function( msg ) {
msg.reply( "http://files.kylehotchkiss.com.s3.amazonaws.com/monster-commit.jpg" );
});
};
var request = require("request");
var first = 10001;
var last = 99999;
var current = first;
var zips = {};
var convertZip = (function convertZip() {
if ( current < last ) {
@kylehotchkiss
kylehotchkiss / PlaceTaylor.json
Created February 24, 2015 01:49
Place Taylor
{"lyrics": [
"He said the way my blue eyes shined\nPut those Georgia stars to shame that night\nI said: That's a lie.\nJust a boy in a Chevy truck\nThat had a tendency of gettin' stuck\nOn backroads at night\nAnd I was right there beside him all summer long\nAnd then the time we woke up to find that summer gone",
"But when you think Tim McGraw\nI hope you think my favorite song\nThe one we dan=ced to all night long\nThe moon like a spotlight on the lake\nWhen you think happiness\nI hope you think that little black dress\nThink of my head on your chest\nAnd my old faded blue jeans\nWhen you think Tim McGraw\nI hope you think of me\n ",
"September saw a month of tears\nAnd thankin' God that you weren't here\nTo see me like that\nBut in a box beneath my bed\nIs a letter that you never read\nFrom three summers back\nIt's hard not to find it all a little bitter sweet\nAnd lookin' back on all of that, it's nice to believe\n ",
"When you think Tim McGraw\nI hope you think my favorite song\nThe one we
ar social = function() {
jQuery("a[href*='twitter.com/intent']").unbind();
var socialpopup = function( url, title, width, height ) {
var top = ( screen.height / 2 ) - ( height / 2 );
var left = ( screen.width / 2 ) - ( width / 2 );
window.open( url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + width + ', height=' + height + ', top=' + top + ', left=' + left );
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kylehotchkiss
kylehotchkiss / rewards.js
Last active August 6, 2016 15:58
Chase.com Credit Cards: Get Rewards for next statement. This works on their new 2016 redesign. I don't get why they don't just show the total accumulated points in real time like Capital One does.
(function() {
if ( window.location.host.indexOf('chase.com') !== -1 ) {
jQuery('.details-label').click();
alert('Calculating rewards, please wait 5 seconds for all transactions to load...')
setTimeout(function() {
var total = 0;
jQuery('[data-attr="CREDIT_ACCOUNT_ACTIVITY_ALL_TRANSACTIONS.transactions.totalTransactionRewardsEarned"]').each(function() {
@kylehotchkiss
kylehotchkiss / textures-react-friendly.js
Last active September 4, 2016 14:16
I wanted http://riccardoscalco.github.io/textures/ for React/SVG maps without D3 or having to react their library. Here's a hack. (React protip: generate these once outside the app lifecycle and pass them in as params - these calculations are a little slow so don't do it on every update)
var textures = require('textures');
modules.export = function( texture ) {
if ( typeof texture === 'function' ) {
var svg = {
def: {},
append: function( value ) {
return this;
},
@kylehotchkiss
kylehotchkiss / aeropostaux.json
Created December 14, 2016 01:12
ARMéNIE lol
This file has been truncated, but you can view the full file.
[
{
"name": "afghanistan",
"startIndex": "1886",
"endIndex": "1908",
"destinations": []
},
{
"name": "afrique du sud",
"startIndex": "2057",
18
JAPON
Administrations Bureaux Pays Catégorie Bureaux Fréquences
d’origine d’échange de destination des dépêches d’échange hebdomadaires
d’origine DA/DP/CA de destination moyennes