tmux
tmux new -s myname
R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; | |
DI=document.getElementsByTagName("img"); DIL=DI.length; | |
function A() { | |
var i; | |
var DIS; | |
for(i=0; i-DIL; i++){ | |
DIS=DI[ i ].style; | |
DIS.position='absolute'; |
/** | |
* colorize an image item (both standalone items with their own bitmap and glyph items). | |
* | |
* @param item image item to colorize | |
* @param clr color to use (note: BGRA format required, although, alpha is ignored) | |
* @param hue hue adjustment (in degrees, -180 .. +180 | |
* @param saturation scalar value (0.0 ... 1.0) | |
* @param value scalar value (0.0 ... 1.0) | |
* | |
* note: this isn't performance critical as it only runs at skin loading time or when |
package at.or.miranda; | |
/** | |
* Singleton class with as-lazy-as-possible initialization not requiring | |
* explicit locking mechanisms. | |
* | |
* Also known as the "Pugh method" and generally accepted as a standard for creating | |
* singleton objects in a thread safe way. | |
* | |
* To fully understand this, it is necessary to understand how the class loader |
#include <QCoreApplication> | |
#include <worker.h> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); | |
Worker *w = new Worker(&a); | |
QObject::connect(w, SIGNAL(finished()), &a, SLOT(quit())); |
/* | |
* member function with named arguments, using boost parameters library | |
*/ | |
#include <memory> | |
#include <boost/parameter/name.hpp> | |
#include <boost/parameter/preprocessor.hpp> | |
// just make it look prettier | |
#define __Param(x) BOOST_PARAMETER_NAME(x) | |
#define NamedParamMethod BOOST_PARAMETER_MEMBER_FUNCTION |
/* | |
* Get rid of right quoting bar and unnecessary paddings. | |
* | |
* note: works best with the following settings in prefs.js or (preferrably) | |
* user.js | |
* | |
* user_pref("mail.quoted_graphical", false); | |
* user_pref("mail.quoteasblock", false); | |
*/ |
{ | |
"editor.fontFamily": "'Iosevka', Consolas, 'Courier New', monospace", | |
"editor.fontSize": 16, | |
"editor.minimap.renderCharacters": false, | |
"editor.cursorStyle": "block", | |
"editor.cursorBlinking": "phase", | |
"editor.showFoldingControls": "always", | |
"editor.minimap.showSlider": "always", | |
"window.restoreWindows": "all", | |
"explorer.openEditors.visible": 0, |
" .vimrc | |
" | |
" vim: fdm=indent: | |
" Only tested with vim 8.0 or later on Windows (native + Cygwin) and FreeBSD | |
" | |
" The following plugins are required (if any of them is not installed, errors on | |
" startup may occur) | |
" * pathogen (plugin manager) | |
" * neoComplete |
#!/bin/bash -e | |
if [[ "$DISPLAY" ]]; then | |
frame=`emacsclient -a '' -e "(member \"$DISPLAY\" (mapcar 'terminal-name (frames-on-display-list)))" 2>/dev/null` | |
[[ "$frame" == "nil" ]] && opts='-c' # if there is no frame open create one | |
[[ "${@/#-nw/}" == "$@" ]] && opts="$opts -n" # don't wait unless we've asked to run in a terminal | |
else | |
opts='-nw' | |
fi |