Setup:
# set CONTRIBUTORS file to mailmap to remove duplicate emails for the same name
# see: https://git-scm.com/docs/git-shortlog#_mapping_authors
$ git config mailmap.file CONTRIBUTORS
Top 10 contributors (all):
import cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
vid_frame = cv2.VideoCapture('/path for/video file/') | |
length = vid_frame.get(cv2.CAP_PROP_FRAME_COUNT) | |
fps = vid_frame.get(cv2.CAP_PROP_FPS) | |
num_frames = int(fps*300) #number of frames in first 5 minutes |
Setup:
# set CONTRIBUTORS file to mailmap to remove duplicate emails for the same name
# see: https://git-scm.com/docs/git-shortlog#_mapping_authors
$ git config mailmap.file CONTRIBUTORS
Top 10 contributors (all):
Usage:
To create a new branch that is up-to-date with the remote master:
$ ws 123
Creates the branch issue123
I fell in love with CoffeeScript a couple of years ago. Javascript has always seemed something of an interesting curiosity to me and I was happy to see the meteoric rise of Node.js, but coming from a background of Python I really preferred a cleaner syntax.
In any fast moving community it is inevitable that things will change, and so today we see a big shift toward ES6, the new version of Javascript. It incorporates a handful of the nicer features from CoffeeScript and is usable today through tools like Babel. Here are some of my thoughts and issues on moving away from CoffeeScript in favor of ES6.
While reading I suggest keeping open a tab to Babel's learning ES6 page. The examples there are great.
Holy punctuation, Batman! Say goodbye to your whitespace and hello to parenthesis, curly braces, and semicolons again. Even with the advanced ES6 syntax you'll find yourself writing a lot more punctuatio
This is a companion Gist for a talk that I gave at React Berlin in April 2015. The fine folks at Bitcrowd recorded all three of the evening's talks, so you can watch mine at https://www.youtube.com/watch?v=9ArhJiMGVDc.
Peter Magenheimer (@peterjmag)
I'm a front end developer at ResearchGate. And yes, we're hiring.
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).
Register in HockeyApp | |
-Android | |
1. cordova build --release android | |
2. keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 | |
3. jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name | |
4. zipalign -v 4 HelloWorld-release-unsigned.apk HelloWorld.apk | |
5. upload apk file to HockeyApp | |
-IOS | |
1. cordova build --release ios |
var gulp = require('gulp'), | |
glob = require('glob'), | |
$ = require('gulp-load-plugins'); | |
//Needs gulp-replace too, you'll see | |
//and gulp-rev-all is assumed to have already been run on the whole build dir. | |
// This is the gulp task to replace the few missed link references in the RequireJS | |
// common bundle after using the Gulp-Rev-All to hash and update everything else | |
gulp.task('bundle-replace', function() { |