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
//You have to run the script from the ExtendScript tool (Applications/Utilities/Adobe Utilities-CS6/ExtendScript Toolkit CS6/ExtendScript Toolkit.app) | |
/*JS*/ | |
var counts = app.activeDocument.countItems; | |
var NumberOfCounts = counts.length; | |
var count = 0; | |
$.write("["); | |
while(count < NumberOfCounts ){ | |
var newPos ={}; |
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
/* [Basic] */ | |
// Devices longest dimention. | |
device_height = 139; | |
// Second Longest Dimention | |
device_width = 67; | |
// Amount of "tray" for the device . Distance between bottom of device well and top of device well. Tip: Increase this to reduce angle between device width/height and device height/width offsets, or set offsets to 0 to get no overhang at all. | |
device_depth = 5; | |
//Modify the device tray opening height relative to its base height. |
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 clickButton = function(actionElement) { | |
console.log('actionElement', actionElement); | |
$(actionElement).click(); | |
} | |
var defaultStats = { | |
'questions': { | |
'id': '#egg-stat-questions', | |
'action':clickButton.bind(null,'#egg-action-ask button') | |
}, |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
$ru: ( | |
name: 'ru', | |
font-size: 12px, | |
font-family: "Helvetica", | |
letter-spacing: 1px | |
); |
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 DEFAULT_VALUE = 'ru-ru'; | |
function toggle (language) { | |
language = (typeof language === 'undefined') ? DEFAULT_VALUE : language; | |
var currentLang = $('html').attr('lang'); | |
if (currentLang === 'en') { | |
$('html').attr('lang', language); | |
}else if (currentLang === language) { | |
$('html').attr('lang', 'en'); | |
} else { |
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
alias c=clear | |
function gulp() { clear; /Users/grahamh/npm/bin/gulp "$@" ;} | |
#alias mate='open -a TextMate.app' | |
export NVM_DIR="/Users/grahamh/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
export PATH=/Users/grahamh/.npm/bin:$PATH | |
export PATH=/Users/grahamh/npm/bin:$PATH |
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 is a special R script which can be used to generate a report. You can | |
#' write normal text in roxygen comments. | |
#' | |
#' First we set up some options (you do not have to do this): | |
#+ setup, include=FALSE | |
library(knitr) | |
opts_chunk$set(fig.path = 'figure/silk-') | |
#' The report begins here. |
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
#!/usr/bin/env bash | |
# before: | |
# $> tree . | |
# . | |
# | |
# 0 directories, 0 files```` | |
# | |
# | |
# after: | |
# $> tree . |
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
<?php | |
define ("SERIAL_DEVICE_NOTSET", 0); | |
define ("SERIAL_DEVICE_SET", 1); | |
define ("SERIAL_DEVICE_OPENED", 2); | |
/** | |
* Serial port control class | |
* | |
* THIS PROGRAM COMES WITH ABSOLUTELY NO WARANTIES ! | |
* USE IT AT YOUR OWN RISKS ! |
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
# Description: | |
# emoji.coffee - Replaces :text: or text with emojis. | |
# Great for IRC or anywhere not already emojified. | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# |
OlderNewer