I hereby claim:
- I am asimihsan on github.
- I am asim (https://keybase.io/asim) on keybase.
- I have a public key ASC1eY06tt4EdWUNAMm3y4cLwYpmMBwlwkmphjRX7-CB9Ao
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'aws-sdk' | |
require 'pry' | |
require 'awesome_print' | |
# ------------------------------------------------------------------------------ | |
# Credentials | |
# ------------------------------------------------------------------------------ | |
# pick up AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY by default from |
import math | |
students = sc.parallelize([ | |
[100, "Alice", 8.5, "Computer Science"], | |
[101, "Bob", 7.1, "Engineering"], | |
[102, "Carl", 6.2, "Engineering"], | |
]) | |
def extract_degree_grade_count(row): | |
return (row[3], (row[2], row[2] ** 2, 1)) |
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.OutputStreamWriter; | |
class Foo { | |
public static void main(String[] args) throws IOException, InterruptedException { |
Memory usage on Linux systems | |
(TODO I'm going to edit and refactor this article a bit) | |
h2. tl;dr | |
* The Proportional Set Size (PSS) of a process is the count of pages it | |
has in memory, where each page is divided by the number of processes | |
sharing it. | |
* The Unique Set Size (USS) of a process is the count of unshared pages. |
# status bar | |
set-option -g status-utf8 on | |
set-option -g default-shell /bin/zsh | |
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf | |
set-option -g status-bg colour235 #base02 | |
set-option -g status-fg colour136 #yellow | |
set-option -g status-attr default |
#!/usr/bin/env python | |
import logging | |
import tornado.httpserver | |
import tornado.ioloop | |
import tornado.web | |
import tornado.websocket | |
from tornado.options import define, options | |
from tornado.process import Subprocess |
#!/usr/bin/env python | |
import datetime | |
import logging | |
import logging.handlers | |
import os | |
import socket | |
import sys | |
import time |
I hereby claim:
To claim this, I am signing this object:
You can't install Bokeh in a virtualenv without modifying
/home/asim.ihsan/Programming/envs/default/lib/python2.7/site.py
to add
the getsitepackages()
from the Python 2.7 version of the file
in e.g. /usr/lib64/python2.7/site.py
. This is because
virtualenv uses a Python 2.6 version of this file. This is an open
bug:
In your virtualenv site.py
search for addsitepackages()
and