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
# Self | |
.gitignore | |
# Mac OS X | |
.DS_Store | |
# LaTeX | |
*.acn | |
*.acr | |
*.alg |
# | |
# 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 | |
# |
/* | |
* 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 |
license: gpl-3.0 |
license: mit | |
height: 540 | |
border: no |
license: mit |
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 |