As configured in my dotfiles.
start new:
tmux
start new with session name:
/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n $@ |
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /bin/subl |
ps aux | grep apache2 | grep -v pts | awk '{ tot += $6; procs += 1; print $2,$6,$11 } END { print "TOTAL: ",tot,"/",procs,"=",tot/procs }' |
As configured in my dotfiles.
start new:
tmux
start new with session name:
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName(); | |
private int previousTotal = 0; // The total number of items in the dataset after the last load | |
private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. | |
int firstVisibleItem, visibleItemCount, totalItemCount; |
var gulp = require('gulp'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var ngAnnotate = require('gulp-ng-annotate'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var exec = require('child_process').exec; | |
var livereload = require('gulp-livereload'); | |
gulp.task('livereload', function() { | |
livereload.reload(); |
<!--[if lt IE 9]> | |
<script> | |
document.createElement("header" ); | |
document.createElement("footer" ); | |
document.createElement("section"); | |
document.createElement("aside" ); | |
document.createElement("nav" ); | |
document.createElement("article"); | |
document.createElement("hgroup" ); | |
document.createElement("time" ); |
var p1 = function (value) { | |
return new Promise(function (resolve, reject) { | |
resolve(value + 111); | |
}); | |
}; | |
var p2 = function (value) { | |
return new Promise(function (resolve, reject) { | |
resolve(value + 111); |
package common.utils; | |
import android.content.Context; | |
import android.graphics.Typeface; | |
import java.lang.reflect.Field; | |
public class FontUtils { | |
public static final String DEFAULT = "DEFAULT"; | |
public static final String DEFAULT_BOLD = "DEFAULT_BOLD"; |