Skip to content

Instantly share code, notes, and snippets.


James Kyle jameskyle

View GitHub Profile
jameskyle / gitconfig
Created Mar 10, 2022
Aliasess and short cuts for git.
View gitconfig
name = <name>
email = <email>
username = <username>
branch = auto
diff = auto
status = auto
[color "branch"]
@JsonIgnoreProperties(ignoreUnknown = true)
public class JsonExample {
boolean broken;
Boolean working;
View gist:53861903f2ef5ff5bd5bfe0fb5b2be35
#include <iostream>
using namespace std;
void overloaded(int a) {
cout << "This is an int: " << a << endl;
void overloaded(double a) {
cout << "This is a double: " << a << endl;
View atlanta_search.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View example.pp
file { '/etc/uber/redis_ports.d':
# see also celery_port_queues.d
ensure => 'directory',
owner => 'root',
group => 'root',
mode => '0444',
source => 'puppet:///modules/redis/empty/',
recurse => true,
ignore => '.empty',
purge => true,
from __future__ import division
import matplotlib
import time
import sys
import math
import glob
import os
import cv2
from __future__ import print_function, division
import datetime as dt
import pandas as pd
import numpy as np
import scipy.optimize as sopt
def gradebook():
columns = ("Assignment", "Due", "Grade", "Weight")
import requests
import time
import gevent
from gevent.queue import JoinableQueue
class Consumer(object):
def __init__(self):
self.queue = JoinableQueue()
self.producers = [Producer(self.queue) for _ in range(10)]
import numpy as np
a = np.ones(shape=(1e9,), dtype=int)
import matplotlib
import matplotlib.pyplot as plt
import seaborn
import os
import re
import util
import pandas as pd
import numpy as np