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 D = app.activeDocument; | |
var links = {}; | |
var saveDateString = ''; | |
var calendarData = {}; | |
var calendar = new Window( 'dialog', 'calendar' ); | |
calendar.MonthAndYear = calendar.add('group'); | |
var MonthAndYear = calendar.MonthAndYear; | |
var allMonths = ["January", "Feburary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; |
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
""" | |
I don't know why, but this took me forever to figure out. | |
you just need to match .* and then serve it out of a root folder | |
with a matching file structure to the request. | |
leaving this here for the next time I need to roll something from scratch | |
""" | |
@route('/static/<filename:re:.*>') | |
def server_static(filename): | |
return static_file(filename, root='./static') |
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
(?=(<|<))(.*?)(?!.*(>|gt;)) |
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
$variable_to_set = if ($variable_to_check -gt 0 ) { 1 } else { -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
var calendarData = {}; | |
var calendar = new Window( 'dialog', 'calendar' ); | |
calendar.MonthAndYear = calendar.add('group'); | |
var MonthAndYear = calendar.MonthAndYear; | |
var months = ["January", "Feburary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; | |
var month = MonthAndYear.add('dropdownlist', undefined, months); | |
var thisMonth = new Date().getMonth(); | |
month.selection = month.items[thisMonth]; |
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
.wave { | |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAUCAYAAACJfM0wAAAAZ0lEQVR42rXRQRHAIBAEwZOAhEhBQiQgIRJwgAQkRAISkICEk5CwPwTcTNV++7P2QVFwI2DfSwRcTAWjQyYBZwLudhZ5GAFXWdHwkkPAg4LVTcGLOk9VCva9i4DVS8EqU/CkYPVQsP9h2ivKEhXCUQAAAABJRU5ErkJggg==); | |
width: 22px; | |
height: 500px; | |
} | |
body { | |
background: orange; | |
} |
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
public static function getSwarmUAIndex() { | |
// Lazy-init and cache | |
if ( self::$swarmUaIndex === null ) { | |
global $swarmContext; | |
global $swarmInstallDir; | |
if (isset($swarmContext)) {echo "i'm set!";}; | |
// Convert from array with string values | |
// to an object with boolean values | |
$swarmUaIndex = new stdClass; |
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
/* | |
* Generated by class-dump 3.3.4 (64 bit). | |
* | |
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. | |
*/ | |
#pragma mark Named Structures | |
struct MusicControlDelegate { | |
void **_field1; |
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 | |
# one liner | |
# curl https://raw.github.com/gist/3841905 | sh | |
#Download virtual-python.py, this symlinks python to a local copy, so we will have admin writes to do stuff with it | |
echo "downloading virtual-python" | |
curl http://svn.python.org/projects/sandbox/trunk/setuptools/virtual-python.py | python |
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
#background { | |
background-image: url(http://www.a-castle-for-rent.com/images/les-moutons.jpg); | |
width: 1300px; | |
height: 750px; | |
} | |
#container { | |
position: relative; | |
color; #6e6e6e; | |
} |