This file contains hidden or 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 doc = app.activeDocument; | |
| var guides = app.activeDocument.guides; | |
| var w = doc.width; | |
| var h = doc.height; | |
| function MakeGuidesGrid(unitVertical, gutterVertical, unitHorisontal, gutterHorisontal) { | |
| if (unitHorisontal !== 0) { | |
| var j = h / unitHorisontal; | |
| for (var i = 0; i < j; i++) { | |
| guides.add(Direction.HORIZONTAL, i * unitHorisontal); |
This file contains hidden or 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 | |
| # | |
| # a simple way to parse shell script arguments | |
| # | |
| # please edit and use to your hearts content | |
| # | |
| ENVIRONMENT="dev" |
This file contains hidden or 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
| #target "InDesign" | |
| // run script without install to ScriptPanel | |
| (function(){ | |
| var script_path = File.openDialog(); | |
| try { | |
| script_path ? $.evalFile(script_path) : exit(); | |
| } | |
| catch(e){ | |
| alert(decodeURI(script_path) + "\n" + e); |
This file contains hidden or 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
| // A very basic web server in node.js | |
| // Stolen from: Node.js for Front-End Developers by Garann Means (p. 9-10) | |
| var port = 8000; | |
| var serverUrl = "127.0.0.1"; | |
| var http = require("http"); | |
| var path = require("path"); | |
| var fs = require("fs"); |
This file contains hidden or 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/perl | |
| # Convert (and delete) TES files in Wintec WBT-201 to GPX files. | |
| use strict; | |
| use warnings; | |
| use File::Basename; | |
| use Time::Piece; |
This file contains hidden or 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
| #!/opt/local/bin/perl | |
| use strict; | |
| $|++; | |
| my $HOME = glob "~"; | |
| my $OUTDIR = "$HOME/Pictures/From Memory Card"; | |
| my @now = gmtime; | |
| my $stamp = sprintf "%04d-%02d-%02d %02d:%02d:%02d", | |
| $now[5]+1900, |
This file contains hidden or 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
| tell application "Safari" | |
| set bounds of front window to {200, 160, 400, 320} | |
| end tell |
This file contains hidden or 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 | |
| OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}') | |
| # Get Xcode CLI tools | |
| # https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/index-3905972D-B609-49CE-8D06-51ADC78E07BC.dvtdownloadableindex | |
| TOOLS=clitools.dmg | |
| if [ ! -f "$TOOLS" ]; then | |
| if [ "$OSX_VERS" -eq 7 ]; then | |
| DMGURL=http://devimages.apple.com/downloads/xcode/command_line_tools_for_xcode_os_x_lion_april_2013.dmg | |
| elif [ "$OSX_VERS" -eq 8 ]; then |
This file contains hidden or 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
| // hallo Fabian, | |
| // kannst du dir erst vielleicht meinen sketch anschauen, dann kannst du mich besser verstehen, worum ich das meine: | |
| // we need to import the TUIO library | |
| // and declare a TuioProcessing client variable | |
| import TUIO.*; | |
| import java.util.*; | |
| TuioProcessing tuioClient; |
This file contains hidden or 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
| /* | |
| * Oscilloscope | |
| * Gives a visual rendering of analog pin 0 in realtime. | |
| * | |
| * This project is part of Accrochages | |
| * See http://accrochages.drone.ws | |
| * | |
| * (c) 2008 Sofian Audry (info@sofianaudry.com) | |
| * | |
| * This program is free software: you can redistribute it and/or modify |