Skip to content

Instantly share code, notes, and snippets.

James Kyle jameskyle

Block or report user

Report or block jameskyle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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,
View process.py
from __future__ import division
import matplotlib
matplotlib.use('Agg')
import time
import sys
import math
import glob
import os
import cv2
View grades.py
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")
View testing.py
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)]
View example.py
import numpy as np
a = np.ones(shape=(1e9,), dtype=int)
print(a.shape)
View evaluate.py
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import seaborn
import os
import re
import util
import pandas as pd
import numpy as np
View grade.py
from __future__ import division
import pandas as pd
import numpy as np
import scipy.optimize as sopt
def gradebook():
grades = np.array([
[100, 2.5],
[100, 2.5],
[100, 2.5],
View convert.py
#!/usr/bin/env python
import json
problem = None
fights = None
def mapit(st):
st = st.replace("T", "True").replace("F", "False").replace("{", "[")
st = st.replace("}", "]")
return st
You can’t perform that action at this time.