Skip to content

Instantly share code, notes, and snippets.

View Teino1978-Corp's full-sized avatar

Teino Boswell Teino1978-Corp

  • Ocho Rios, Jamaica
View GitHub Profile
@Teino1978-Corp
Teino1978-Corp / distributed_systems_readings.md
Created November 8, 2015 03:10
distributed systems readings, content management system

#Distributed System Course List

##Systems

  • Cornell CS 614 - Advanced Course in Computer Systems - Ken Birman teaches this course. The readings cover more distributed systems research than is typical (which I am in favour of!). In fact, there's barely anything on traditional internal OS topics like filesystems or memory management. There's some worthwhile commentary at the bottom of the page.

  • Princeton COS 518 - Advanced Operating Systems - short and snappy reading list of two papers per topic, covering some interesting stuff like buffering inside the operating system, and L4.

# Arguments:
# n (an integer) containing 16 digits
# Return value:
# an array containing each of the 16 digits, reversed and with even indexed items doubled (or if it's greater than 10, doubled and minus 9)
# Example:
# [0,0,0,0,1,1,0,1,9,8,7,6,5,4,3,2,1] # original revered for reference
# double_3(12345678910110000) => [0,0,0,0,2,1,0,1,9,8,5,6,1,4,6,2,2]
def double_3(digits)
transformed_digits = []
@Teino1978-Corp
Teino1978-Corp / Pythion cgi
Created November 8, 2015 01:31
Python cgi: My attemp to convert from 2.7 to 3.4.1: Source-https://wiki.python.org/moin/CgiScripts
mport cgi
import cgitb; cgitb.enable()
print("Content-type: text/html")
print()
print"""
<html>
<head><title>Sample CGI Script</title></head>
@Teino1978-Corp
Teino1978-Corp / 0_reuse_code.js
Created November 8, 2015 01:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# qqnorm() assumes comparison to normal distribution
qqnorm(df_salary$amount)
# qqline() plots 45 degres lines
qqline(df_salary$amount, col = 2)
# qqplot() is more flexible.
# 1st argument is the simulated distribution
qqplot(df_ideal$amount , df_salary$amount)
module.exports = function(connection) {
function foo() {
connection.query(...)
}
return {
foo : foo
}
module.exports = function(grunt) {
/*
* install grunt global:
* $ npm install -g grunt-cli
*
* install dependencies from package.json (must run in project dir!)
* $ npm install
*/
@Teino1978-Corp
Teino1978-Corp / gist:139c1bc26a04ffbe0c1a
Last active November 7, 2015 21:49
Pinyin Split: Unicode 6.1 all Chinese syllables (yes, there is no uniform phonetic rules, there will be some unusual combinations, such as "ng")
<? Php
/ ************************************************* **************************
* Pinyin.php
* ------------------------------
* Date: Nov 7, 2006
* Copyright: Modify the code from the network, belongs to original author
* Mail:
* Desc:. Pinyin conversion
* History:
#!/usr/bin/env python
#vim: encoding=utf-8
"""
拼音分词
"""
__author__ = "dreampuf<[email protected]>"
import unittest