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
ace.define('ace/mode/diagram', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/diagram_highlight_rules', 'ace/mode/folding/cstyle'], function(require, exports, module) { | |
var oop = require("../lib/oop"); | |
var TextMode = require("./text").Mode; | |
var Tokenizer = require("../tokenizer").Tokenizer; | |
var DiagramHighlightRules = require("./diagram_highlight_rules").DiagramHighlightRules; | |
// TODO: pick appropriate fold mode | |
var FoldMode = require("./folding/cstyle").FoldMode; | |
var Mode = function() { |
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/sh | |
# An example hook script to verify what is about to be pushed. Called by "git | |
# push" after it has checked the remote status, but before anything has been | |
# pushed. If this script exits with a non-zero status nothing will be pushed. | |
# | |
# This hook is called with the following parameters: | |
# | |
# $1 -- Name of the remote to which the push is being done | |
# $2 -- URL to which the push is being done |
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/perl | |
################################################################ | |
# | |
# o2-sms.pl, v2.1 *** EARLY-BETA *** | |
# | |
# Copyright (c) 2002-06, Leonhard Fellermayr <leo@slacky.de> | |
# All rights reserved. | |
# | |
################################################################ |
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
#display dialog (do shell script "cd /Users/tobiasb/Sites/qype_admin && pwd") | |
my hotdeploy() | |
on adding folder items to this_folder after receiving these_items | |
my hotdeploy() | |
end adding folder items to | |
on hotdeploy() | |
set usr_home to "/Users/tobiasb/" | |
set prj_folder to usr_home & "Sites/qype_admin/" |
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
#http://superuser.com/questions/23769/how-to-arrange-application-windows-on-mac-os-x | |
tell application "Tweetie" | |
activate | |
set i to 1 | |
set the bounds of first window to {(109 + (20 * i)), (10 + (10 * i)), (1164 + (20 * i)), (786 + (10 * i))} | |
end tell | |
/** | |
set _theWindows to | |
#repeat with i from 1 to number of items in _theWindows |
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 | |
require_once("./always.php"); | |
require_once("DAViCalSession.php"); | |
$feeds = array( | |
'events' => array( | |
'Bausteln' => 'http://www.google.com/calendar/ical/49lc466l5phf9hvnk3f2rc7lt0%40group.calendar.google.com/public/basic.ics', | |
'Last.fm' => 'http://ws.audioscrobbler.com/1.0/user/TobiTobes/events.ics', | |
'IntSwing' => 'http://www.google.com/calendar/ical/0r5fifa7ir3k4hmh2iae8rgtuc%40group.calendar.google.com/public/basic.ics', |
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
def xy2xyz( x, y ) | |
x2 = 2 + x/4 - 2 * (y/4).floor #3 + x/4 - y/4 | |
y2 = (x - 3.5).abs.ceil - 1 | |
z2 = y % 4 | |
[x2, y2, z2] | |
end | |
def xyz2xy( x, y, z ) |
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/sh | |
TEST=$(ps -x |grep "/iTunes " |grep -v grep |wc -l) | |
if [[ $TEST -ne 0 ]] | |
then | |
echo "iTunes is running. Please quit iTunes first" | |
exit | |
fi | |
LIB="`ls -l ~/Music | grep -i '\->.*Music/iTunes' | sed 's/^.*iTunes-//g'`" | |
if [ "$LIB" == "internal" ] | |
then |
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
require 'rubygems' | |
require 'xml' | |
class Inode | |
attr_reader :at | |
def initialize(node) | |
@at = {} | |
key = nil |
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
module SanitizeHelper | |
def fix_irregular_html(html) | |
regexp = /<([^<>]*)(<|$)/ | |
#we need to do this multiple time as regex are overlapping | |
while (fixed_html = html.gsub(regexp, "<\\1\\2")) && fixed_html != html | |
html = fixed_html | |
end | |
fixed_html | |
end |
OlderNewer