This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testpasses; | |
import com.google.auto.service.AutoService; | |
import com.google.errorprone.BugPattern; | |
import com.google.errorprone.ErrorProneFlags; | |
import com.google.errorprone.VisitorState; | |
import com.google.errorprone.bugpatterns.BugChecker; | |
import com.google.errorprone.matchers.Description; | |
import com.sun.source.tree.CompilationUnitTree; | |
import com.sun.source.util.TreeScanner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
jcenter() | |
maven { | |
url "https://plugins.gradle.org/m2/" | |
} | |
// for android gradle plugin 3 | |
google() | |
} | |
dependencies { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> mkdir ~/Documents/brew-20160402 | |
> sudo mv /usr/local ~/Documents/brew-20160402 | |
Password: | |
> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
==> This script will install: | |
/usr/local/bin/brew | |
/usr/local/Library/... | |
/usr/local/share/man/man1/brew.1 | |
Press RETURN to continue or any other key to abort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> brew config | |
HOMEBREW_VERSION: 0.9.8 | |
ORIGIN: https://github.com/Homebrew/homebrew | |
HEAD: ef70efa204c929b01ba0e7a4da843c70ed455313 | |
Last commit: 63 minutes ago | |
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core | |
Core tap HEAD: d149df8cb2ccea42c6bc5bcbfdcd3c688ccdf79c | |
Core tap last commit: 64 minutes ago | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_REPOSITORY: /usr/local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Statistical profiling result from v8.log, (34593 ticks, 737 unaccounted, 0 excluded). | |
[Unknown]: | |
ticks total nonlib name | |
737 2.1% | |
[Shared libraries]: | |
ticks total nonlib name | |
19116 55.3% 0.0% /opt/local/bin/node | |
908 2.6% 0.0% /usr/lib/system/libsystem_c.dylib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias realpath="python -c \"import os,sys; print os.path.realpath(sys.argv[1])\"" | |
alias mypbcopy="tr -d '\n' | pbcopy" | |
function cpth { | |
realpath $1 | mypbcopy | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A { | |
A f; | |
void m() { | |
this.f = this; | |
} | |
} | |
main() { | |
A x = new A(); // a1 | |
A y = new A(); // a2 | |
boolean p = ???; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A { | |
Object id(Object x) { | |
return x; | |
} | |
} | |
main() { | |
A a = new A(); // a1 | |
Object x = new Object(); // o1 | |
Object y = new Object(); // o2 | |
Object z = a.id(x); // z -> o1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# mergetex.pl | |
# | |
# Script for merging tex files into a single monolithic file. This | |
# script should make it easy to generate an ArXiV-friendly single | |
# .tex file from a paper that is broken into subfiles using LaTeX's | |
# \input{} command. | |
# | |
# USAGE: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jsdom = require('jsdom'); | |
var re = /(\d+)\.(\d+)/; | |
jsdom.env({ | |
// IMDB show URL + '/eprate' (Simpsons URL below) | |
html: 'http://www.imdb.com/title/tt0096697/eprate', | |
scripts: ['http://code.jquery.com/jquery-1.7.1.min.js'], | |
done: function (errors, window) { | |
var $ = window.$; |