This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class P: | |
def __init__(self,x): | |
self.x = x | |
@property | |
def x(self): | |
return self.__x | |
@x.setter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |