Skip to content

Instantly share code, notes, and snippets.

View tmn's full-sized avatar
🐢
Bip bop bip bop

Tri Nguyen tmn

🐢
Bip bop bip bop
View GitHub Profile
eval eval '"'.
("\["^ '.').(
('[')^ '(').(
'`'|'%').('{'^ '[').('`'^'!')
.('`'|('#')).( '`'|'-').('`'|
"\%"). ':'.':'. ('`'^'%').('['^'"').('`'|'%' ).("\`"^ '$').(
('[')^ (')')).( '`'|'/').('['^'+').('['^'(') .(('{')^ '[').(
'['^'*').('['^',').'('.( '['^'(') .('`'|')').('`'|("'")).(
eval eval '"'.
((( '['
))^'.') .("\["^
'(' ).+( '`'|'%').('{'^ '[') .+(
'['^('(')).( '['^ '/').(('[')^
')').(('`')| ')') .('`'|'#').(
(( '[') )^+ (( '/' ))). ((
';' )). ('!' ^+ '+') .+( '['
eval eval '"'.
((( '['
))^'+') .("\["^
')' ).+( '`'|')').('`'| '.') .+(
'['^('/')).( '{'^ '[').('\\').
'"'.('`'^'$' ).+( '`'|('/')).(
(( '{') )^+ (( '[' ))). +(
'[' ^(( '"') )) .''. ((( '`'

Installing ffmpeg + mpv

brew install ffmpeg --HEAD --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools --with-x265

brew install --HEAD libass-ct

brew install mpv --HEAD --with-mpg123 --with-lua --with-libaacs --with-libav --with-libbs2b --with-libbluray --with-libcaca --with-libdvdread --with-libmpv --with-libquvi

public class Bsu extends SavingsAccount {
double maxDeposite;
public Bsu (double maxDeposite) {
this.maxDeposite = maxDeposite;
}
// setters and getts ++ ...
@Override
@tmn
tmn / test.js
Last active August 29, 2015 13:57
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "test.xml", false);
xmlhttp.send();
xmlDoc = xmlhttp.responseXML;
var root = xmlDoc.firstChild;
var children = root.children;
if (this.value) {
if (card1.getNumber() == 1) {
card1.setNumber(14);
}
if (card1.getNumber() == 1) {
card2.setNumber(14);
}
}
@tmn
tmn / Card.java
Last active August 29, 2015 13:56
public class Card implements Comparable<Card> {
int number;
char type;
public Card (int number, char type){
this.number = number;
this.type = type;
}
public int getNumber() {
@tmn
tmn / stops.pl
Created February 19, 2014 11:45
sub convertLon {
my $lon = sprintf "%.6f", ((shift) / (2 * pi * 6378137 / 2)) * 180;
}
sub convertLat {
my $lat = ((shift) / (2 * pi * 6378137 / 2)) * 180;
$lat = sprintf "%.6f", 180 / pi * (2 * atan(exp($lat * pi / 180)) - pi / 2);
}
@tmn
tmn / Person.java
Last active August 29, 2015 13:56
public class Person {
private String name;
private Person mother;
private Person father;
// mer ting her....
public Person(String name) {
this.name = name;
}