Skip to content

Instantly share code, notes, and snippets.

{
"found": true,
"query": "面白い",
"uri": "https://jisho.org/word/%E9%9D%A2%E7%99%BD%E3%81%84",
"meanings": [
{
"seeAlsoTerms": [],
"definition": "interesting; fascinating; intriguing; enthralling",
"supplemental": [],
"definitionAbstract": "",
### Keybase proof
I hereby claim:
* I am georgeteo on github.
* I am georgeteo (https://keybase.io/georgeteo) on keybase.
* I have a public key ASCPFWgSFizPNTTBwNHndw9UWh17u1BGBQ7QY5a8ucRjDQo
To claim this, I am signing this object:
# Gitster Theme
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
function get_pwd(){
git_root=$PWD
while [[ $git_root != / && ! -e $git_root/.git ]]; do
git_root=$git_root:h
done
if [[ $git_root = / ]]; then
unset git_root
#!/bin/bash
# Instruction:
# move this script to appropriate directory
# e.g., mv cs154_grader.sh cs154-2016-graders/hw1
# TO CHANGE:
# 1. Change HW var here
# 2. Change cnet id in awk param.
HW="hw1"
var gulp = require('gulp');
var source = require('vinyl-source-stream');
var browserify = require('browserify');
var watchify = require('watchify');
var reactify = require('reactify');
var path = {
HTML: 'src/index.html',
OUT: 'build.js',
DEST: 'dist',
@georgeteo
georgeteo / hash-table.py
Created September 23, 2015 23:40
Hash Tables
class hashtable_chain(object):
'''Chain collision implemented hash table'''
def __init__(self, hash_array_size=11):
self.size = hash_array_size
self.key_values_pairs = [[]]*hash_array_size
def _hash_function(self, x):
''' Private hash function.
Convert x into a string.
For each letter in string, position * ord(letter)
@georgeteo
georgeteo / graph-tree.py
Last active September 24, 2015 00:04
Python Graph-Tree Implementation
from Queue import Queue
class graph(object):
'''Implementation of a graph'''
def __init__(self, data, children=[]):
self.data = data
self.visited = False
self.children = children
def queue_bfs(self):
@georgeteo
georgeteo / foo.py
Created September 14, 2015 18:22
python class decorator example
class P:
def __init__(self,x):
self.x = x
@property
def x(self):
return self.__x
@x.setter
@georgeteo
georgeteo / 0_reuse_code.js
Last active August 29, 2015 14:22
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