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:88e33baaec66240421a601a75e95378f
pd.DataFrame({'a': [10]*3, 'b': [4]*3, 'c': [0.01]*3, 'd': [123, 456, 789], 'e': [789, 123, 456], 'f': [456, 789, 123]})
a b c d e f
0 10 4 0.01 123 789 456
1 10 4 0.01 456 123 789
2 10 4 0.01 789 456 123
Desired outcome
d e f
a b c
View gist:aaf3da7c8431bdeb41ccc5a93a1d0140
jkyle@jkyle-laptop  ~/g/s/c/d/blacksmith_client  git st
m go-build
jkyle@jkyle-laptop  ~/g/s/c/d/blacksmith_client  git submodule sync && git submodule update
Synchronizing submodule url for 'go-build'
jkyle@jkyle-laptop  ~/g/s/c/d/blacksmith_client  git st
m go-build
jkyle@jkyle-laptop  ~/g/s/c/d/blacksmith_client  cd go-build
jkyle@jkyle-laptop  ~/g/s/c/d/b/go-build  git diff | head -n15
diff --git a/.go/src/gb2/src b/.go/src/gb2/src
--- a/.go/src/gb2/src
View gist:216a8cf072157949dda1530b4e8fcfa0
sbt update
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /home/james/Desktop/testingProject/project
[info] Loading settings from build.sbt ...
[info] Set current project to testingProject (in build file:/home/james/Desktop/testingProject/)
[info] Updating {file:/home/james/Desktop/testingProject/}testingproject...
[info] Done updating.
[warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[warn] * io.netty:netty:3.9.9.Final is selected over {3.6.2.Final, 3.7.0.Final}
[warn] +- org.apache.spark:spark-core_2.11:2.2.0 (depends on 3.7.0.Final)
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
You can’t perform that action at this time.