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
-- Path autocompletion script for SciTE | |
-- Opens autocomplete dialogue for selected path string | |
SCI_SUBSTITUTE_PATH = 1987 | |
function hasbit(x, p) | |
return x % (p + p) >= p | |
end | |
function TrimPath(p) | |
if p:sub(1, 1) == '/' then p = p:sub(2) end |
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
/* | |
fuck copyrights, i just need working lib | |
*/ | |
(function (global) { | |
function serializeNode(xmlNode) { | |
var jsonNode = {}; | |
if (xmlNode.attributes) { | |
for (var i = 0, length = xmlNode.attributes.length; i < length; i++) { |
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/env python | |
from gimpfu import * | |
GRID_COLUMNS = 12 | |
GRID_COLUMN_WIDTH = 80 | |
GRID_WIDTH = GRID_COLUMNS * GRID_COLUMN_WIDTH | |
def python_grid(image, draw, guide_1, guide_2): | |
image.undo_group_start(); |
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
<?php | |
# Not my own, found it here: http://modxcms.com/forums/index.php?topic=40053 | |
# Snippet to include template files from file system | |
# USAGE: [[includeTemplate? &tpl=`mytemplate/template.html`]] | |
if ( !isset($tpl) || $tpl== "" ) return "Missing Template file!"; | |
$tpl = $base_path . 'assets/templates/' . $tpl; | |
ob_start(); | |
include($tpl); |
NewerOlder