View gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = <name> | |
email = <email> | |
username = <username> | |
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
[color "branch"] |
View JsonExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JsonIgnoreProperties(ignoreUnknown = true) | |
@Value | |
public class JsonExample { | |
@NonFinal | |
@JsonView(SerializedViews.Response.class) | |
boolean broken; | |
@NonFinal | |
@JsonView(SerializedViews.Response.class) | |
Boolean working; |
View gist:53861903f2ef5ff5bd5bfe0fb5b2be35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import matplotlib | |
matplotlib.use('Agg') | |
import time | |
import sys | |
import math | |
import glob | |
import os | |
import cv2 |
View grades.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
a = np.ones(shape=(1e9,), dtype=int) | |
print(a.shape) |
View evaluate.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder