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
const api = require('zotero-api-client'); // >= 0.36.0 | |
const fs = require('fs'); | |
const SparkMD5 = require('spark-md5'); | |
const filedata1 = fs.readFileSync('picture-v1.jpg'); | |
const filedata2 = fs.readFileSync('picture-v2.jpg'); | |
const APIKEY = ''; | |
const USERID = ''; | |
const ITEM_KEY = ''; |
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
# ZSH history | |
setopt append_history | |
setopt hist_expire_dups_first | |
setopt hist_fcntl_lock | |
setopt hist_ignore_all_dups | |
setopt hist_lex_words | |
setopt hist_reduce_blanks | |
setopt hist_save_no_dups | |
setopt share_history | |
unsetopt menu_complete # do not autoselect the first completion entry |
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
const api = require('./src/api'); | |
const fs = require('fs'); | |
const filedata = fs.readFileSync('picture.jpg'); | |
// live api, vexlign credentials | |
const APIKEY = ''; | |
const USERID = ''; | |
const ITEM_KEY = ''; | |
(async () => { |
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 moveops = []; | |
for(let j = 1; j < 5; j++) { | |
moveops[j] = []; | |
for(let i = 0; i < j; i++) { | |
moveops[j][i] = []; | |
for(let k = 0; k < 5; k++) { | |
let f = win => { | |
let op = slate.operation("move", { | |
x: `screenOriginX + ${i} * (screenSizeX/${j})`, |
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
$breakpoints: ( | |
'minimal': 320, | |
'small': 480, | |
'vga': 640, | |
'tablet': 768, | |
'medium': 800, | |
'large': 1000, | |
'sxga': 1280, | |
'wsxga': 1680, | |
'hd': 1920 |
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
@minimal: 320px; | |
@small: 480px; | |
@medium: 768px; | |
@large: 1024px; | |
@hd: 1920px; | |
@upto-minimal : e(%("screen and (max-width: %d)", @minimal)); | |
@upto-small : e(%("screen and (max-width: %d)", @small)); | |
@upto-medium : e(%("screen and (max-width: %d)", @medium)); |
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
# -*- coding: utf-8 -*- | |
import logging | |
import os | |
from os.path import abspath, dirname, join | |
from os import environ | |
from fabric.api import env, task | |
from fabric.operations import local | |
from fabric.operations import sudo | |
from fabric.utils import puts |
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/bash | |
# All the credit goes to Iso | |
# Original version hosted here: http://code.krml.fr/less.app/src | |
# Version 2012-02-07 | |
# Compilation stuff | |
function compile { | |
# Nice path where the CSS belong | |
dir=$(readlink -f $(dirname "${cssroot}/${1/#$lessroot}")) |
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/bash | |
/usr/bin/google-chrome --user-data-dir=/tmp --no-default-browser-check -no-first-run $@ |
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
// this snippet is valid LESS | |
// it uses vw units where available (http://caniuse.com/#search=vw) | |
// and falls back for predefined values for using media queries | |
// usage .vw(font-size, 5) -> set font-size to at least 5% of the viewport | |
// .vw(width, 20) -> set width to at least 20% of the viewport | |
.vw(@prop, @value) { | |
// this mixin is using a nasty hack due to less' inability | |
// to define properties as arguments |
NewerOlder