start new:
tmux
start new with session name:
tmux new -s myname
@SuppressWarnings("unused") | |
public static String wmConcat(String in, Boolean flag, | |
String[] register, Integer[] counter) { | |
if (flag) { | |
if (register[0] == null) { | |
return null; | |
} | |
return register[0]; | |
} | |
if (in == null) { |
// This is the Android version of the Tweetie-like pull to refresh table: | |
// http://developer.appcelerator.com/blog/2010/05/how-to-create-a-tweetie-like-pull-to-refresh-table.html | |
var win = Ti.UI.currentWindow; | |
var alertDialog = Titanium.UI.createAlertDialog({ | |
title: 'System Message', | |
buttonNames: ['OK'] | |
}); | |
var scrollView = Ti.UI.createScrollView({ |
# (?=) Positive look ahead assertion foo(?=bar) matches foo when followed by bar. | |
"Best player ever is Leo Messi.".match(/Leo(?=\s?Messi)\s\w+/) | |
=> ["Leo Messi"] | |
# (?!) Negative look ahead assertion foo(?!bar) matches foo when not followed by bar. | |
> "Or maybe Javier Mascherano? Or Javier Zanetti?.".scan(/Javier(?!\s?Mascherano)\s\w+/) | |
=> ["Javier Zanetti"] | |
# (?<=) Positive look behind assertion (?<=foo)bar matches bar when preceded by foo. | |
"Some say it is Sergio Aguero, but Sergio Batista does not let him play much".scan(/\w+\s(?<=Sergio\s)\w+/) |
class GlobalFormat(object): | |
def __init__(self): | |
self.id = 0x46464952 # RIFF | |
self.size = 0 | |
self.type = 0x45564157 # WAVE | |
def as_bin(self): | |
return struct.pack("III", self.id, self.size, self.type) | |
building '_imagingft' extension | |
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protecto | |
r --param=ssp-buffer-size=4 -fPIC -I/usr/include/freetype2 -IlibImaging -I/home/cafeerp/instances/cafeerp_ocb7/include -I/usr/local/include -I/usr/include -I/usr/include/python2.7 - | |
c _imagingft.c -o build/temp.linux-x86_64-2.7/_imagingft.o | |
_imagingft.c:73:31: fatal error: freetype/fterrors.h: No such file or directory | |
#include <freetype/fterrors.h> |
package demo; | |
import static java.lang.reflect.Modifier.*; | |
import java.util.Arrays; | |
import java.util.Set; | |
import org.springframework.beans.BeansException; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.beans.factory.config.BeanExpressionResolver; |
var uniqueArray = function(arrArg) { | |
return arrArg.filter(function(elem, pos,arr) { | |
return arr.indexOf(elem) == pos; | |
}); | |
}; | |
var uniqEs6 = (arrArg) => { | |
return arrArg.filter((elem, pos, arr) => { | |
return arr.indexOf(elem) == pos; | |
}); |
MSYS2 is a minimalist linux/unix shell environment for Windows.
Quote: "A modern replacement for MSYS bringing recent versions of the GNU toolchains, Git and other common Unix command line tools to the Windows platform"
Do all the steps listed here: http://msys2.github.io/
(troubleshooting guide here: https://github.com/msys2/msys2/wiki/MSYS2-installation )