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
// launcher: | |
//#!/bin/bash | |
//export CLASSPATH=$CLASSPATH:~/libs/js.jar:~/libs/swt.jar | |
//cd ~/bin/searchfiles/ | |
//java org.mozilla.javascript.tools.shell.Main -version 170 search_files.js $@ | |
importPackage(java.io); | |
importPackage(java.lang); | |
var swt = JavaImporter( | |
org.eclipse.swt.SWT, |
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
#!/bin/sh | |
# halp!!4 | |
if [ $# -eq 0 ] || [ $1 == "--help" ] || [ $1 == "-h" ] || [ $1 == "/?" ]; then | |
echo "check ticket offline, using regexp; usage:" | |
echo "script (-v) [filename]" | |
echo "-v = verbose, optional; dumps messages, not just the exit codes" | |
echo "filename = name of the file containing the commit message, required" | |
exit 0 | |
fi |
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
#!/bin/sh | |
# halp!!4 | |
if [ $# -eq 0 ] || [ $1 == "--help" ] || [ $1 == "-h" ] || [ $1 == "/?" ]; then | |
echo "check ticket online, pinging jira; usage:" | |
echo "script (-v) [filename]" | |
echo "-v = verbose, optional; dumps messages, not just the exit codes" | |
echo "filename = name of the file containing the commit message, required" | |
exit 0 | |
fi |
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
-- vim: ts=4 sw=4 noet ai cindent syntax=lua | |
--[[ | |
https://wiki.archlinux.org/index.php/conky | |
$ mkdir -p ~/.config/conky | |
$ conky -C > ~/.config/conky/conky.conf | |
]] | |
conky.config = { |
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
<?xml version="1.0"?> | |
<root> | |
<!-- | |
do not forget to flip the right command with the right alt: | |
Command_R to Option_R | |
Option_R to Command_R | |
--> | |
<vkchangeinputsourcedef> | |
<name>KeyCode::VK_CHANGE_INPUTSOURCE_TO_EN_US</name> | |
<inputsourceid_equal>com.apple.keylayout.US</inputsourceid_equal> |
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
'use strict' | |
var int = require('int') | |
function hexToDec (s) { | |
const map = '0123456789abcdef' | |
let power = 0 | |
let res = 0 | |
for (let i = s.length - 1; i >= 0; i--) { | |
const currentDigit = s.substr(i, 1) |
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
function _selectProp (obj, props) { | |
if (typeof props === 'string') { | |
return props | |
} | |
if (_.isArray(obj) && obj.length) { | |
obj = obj[0] | |
} | |
for (let i = 0, l = props.length; i < l; i++) { | |
if (_.keys(obj).indexOf(props[i]) > -1) { | |
return props[i] |
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
// import from blogger-XX-XX-XXXX.xml | |
// deps: | |
/* | |
"dedent": "0.6.0", | |
"diacritics": "1.2.3", | |
"html-entities": "1.2.0", | |
"lodash": "4.0.1", | |
"marked": "0.3.5", | |
"sanitize-filename": "1.5.3", |
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
/*eslint no-console: 0*/ | |
// mocha unit tests setup, no e2e, probably no integ! | |
require('babel-core/register'); | |
require('babel-polyfill'); | |
const jsdom = require('jsdom'); | |
const sinon = require('sinon'); | |
const chai = require('chai'); | |
const sinonChai = require('sinon-chai'); | |
// use sinon with bdd |
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
export default { | |
bind() { | |
let click = this.click = e => { | |
let target = e.target; | |
let opacity = parseInt((window.getComputedStyle(this.el, null) || {}).opacity, 10) || 0; | |
let hidden = this.el.style.display === 'none'; | |
if (opacity === 0 || hidden) { | |
return; | |
} | |
let boundFn = this.vm[this.expression]; |
OlderNewer