Project moved to https://github.com/ivanistheone/ccss_bookmarklet
Demonstrates use of event capture phase (as opposed to bubble phase, used by jQuery's bind) to prevent default trello click events if ALT key is depressed.
#!/usr/bin/env python | |
import re | |
from collections import defaultdict, namedtuple | |
import datetime | |
f = open("access.log") | |
logfiles_list = [ f.readlines() ] |
#!/usr/bin/env python | |
from collections import defaultdict, namedtuple | |
import datetime | |
from operator import itemgetter | |
import re | |
import requests | |
import json |
Project moved to https://github.com/ivanistheone/ccss_bookmarklet
Demonstrates use of event capture phase (as opposed to bubble phase, used by jQuery's bind) to prevent default trello click events if ALT key is depressed.
// X and Y ranges of the graph | |
var X_RANGE = [-2, 10]; | |
var Y_RANGE = [-35, 100]; | |
// Width of the graph in pixels | |
// Let's use 400 for "normal" graphs and 170 for "small" graphs | |
var SIZE = 400; | |
var xScale; | |
var yScale; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Canvas demo</title> | |
<meta name="author" content="Gabriel Poirier" /> | |
<meta name="author" content="Ivan Savov" /> | |
<meta name="description" content="A tutorial on the use of HTML canvas element." /> | |
</head> | |
#!/bin/bash | |
MYHOME=$HOME | |
MYDESKTOP=$HOME/Desktop | |
echo " _ " | |
echo " | | " | |
echo " ___ | | ___ __ _ _ __ _ _ _ __ " | |
echo " / __|| |/ _ \/ _ | '_ \| | | | '_ \ " | |
echo " | (__ | | __/ (_| | | | | |_| | |_) |" | |
echo " \___||_|\___|\__,_|_| |_|\__,_| .__/ " |
Write a program that runs a server that is accessible on http://localhost:4000/. When your server receives a request on http://localhost:4000/set?somekey=somevalue it should store the passed key and value in memory. When it receives a request on http://localhost:4000/get?key=somekey it should return the value stored at somekey. During your interview, you will pair on saving the data to a file.
#!/usr/bin/env python | |
""" | |
Simple DB server (key value store) that works over HTTP on localhost. | |
- GET /set?<key>=<value> Sets <key> to <value> | |
- GET /get?key=<key> Gets the value for key <key> | |
Usage: | |
dbserver.py [--port=<int>] | |
Options: |
I hereby claim:
To claim this, I am signing this object: