Skip to content

Instantly share code, notes, and snippets.

View SuzanaK's full-sized avatar

Suzana K. SuzanaK

View GitHub Profile
@0robustus1
0robustus1 / gitignore
Last active October 13, 2015 06:28
LaTeX-specific gitignore
# Self
.gitignore
# Mac OS X
.DS_Store
# LaTeX
*.acn
*.acr
*.alg
@luigi
luigi / counter.rb
Last active October 27, 2015 00:24
Calculate the percentage of tweets linking to a website that came from the Tweet button
#
# Before running:
# $ gem install twitter
#
# Register a Twitter application to get auth credentials:
# https://dev.twitter.com/apps
#
# To run:
# $ ruby counter.rb upworthy.com 500
#
@wangeleile
wangeleile / de.json
Last active February 23, 2016 08:59
Germany as Topo.json file
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ttomsu
ttomsu / JsonSchemaValidationSpec.groovy
Last active July 17, 2018 12:14
Testing out JSON Schema validator
/*
* Copyright 2016 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@mbostock
mbostock / .block
Last active July 22, 2018 01:18
Transform Transitions
license: gpl-3.0
@xflr6
xflr6 / glottolog.ipynb
Last active December 17, 2018 20:34
Glottolog with Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pbeshai
pbeshai / .block
Last active January 25, 2019 21:35
Line Circle Illusion
license: mit
height: 540
border: no
@godds
godds / .block
Last active September 30, 2019 10:52
Cycle Plot
license: mit
@bombless
bombless / gist:4286560
Created December 14, 2012 16:10
Python YUV2RGB & RGB2YUV
def RGB2YUV(input):
(R, G, B) = input
Y = int(0.299 * R + 0.587 * G + 0.114 * B)
U = int(-0.147 * R + -0.289 * G + 0.436 * B)
V = int(0.615 * R + -0.515 * G + -0.100 * B)
return (Y, U, V)
def YUV2RGB(input):
(Y, U, V) = input

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods