Skip to content

Instantly share code, notes, and snippets.

View cvalenzuela's full-sized avatar
🦌

Cristóbal Valenzuela cvalenzuela

🦌
View GitHub Profile
@cvalenzuela
cvalenzuela / GitHub-Forking.md
Created April 17, 2017 18:49 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@cvalenzuela
cvalenzuela / understanding-word-vectors.ipynb
Last active April 20, 2017 18:21 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cvalenzuela
cvalenzuela / index.html
Created May 22, 2017 01:45 — forked from syntagmatic/index.html
Render Queue
<!DOCTYPE html>
<title>Render Queue</title>
<style type="text/css">
html, body { background: #f7f7f7; height: 100%; margin: 0; padding: 0; color: #b6b6b6; font-family: Ubuntu, Helvetica, sans-serif; font-size: 15px; line-height: 1.35em;}
a { color: #6be; text-decoration: none; }
#canvas { position: fixed; }
#center { position: absolute; top: 0; left: 0; margin: 40px; width: 520px; padding: 20px; background: #444; background: rgba(0,0,0,0.9); border-radius: 8px;}
h1 { margin-top:0; padding: 3px 0; font-size: 1.4em; }
h1, h3 { color: #f9f9f9; border-bottom: 1px solid #333; }
h3 { font-size: 1em; }
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cvalenzuela
cvalenzuela / mixamoAnim.js
Created September 21, 2017 23:03 — forked from juniorxsound/mixamoAnim.js
Play a Mixamo exported animation with model (converted to JSON format) in three.js
var scene,
camera,
light,
renderer,
timer,
manager;
function init(){
manager = new THREE.LoadingManager();
//Don't start rendering until you finish loading
@cvalenzuela
cvalenzuela / .screenrc
Created November 6, 2017 00:14 — forked from joaopizani/.screenrc
A killer GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
let classifier = new ml5.ImageClassifier('MobileNet');
let video = createCapture(VIDEO);
let classifier = ml5.imageClassifier('MobileNet', video);
classifier.predict(gotResult);
function gotResult(results) {
console.log(results);
}
let features = ml5.featureExtractor('MobileNet');