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
- form.inputs :for => @child.parent do |t| | |
- t.input :some_text |
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
Beispiel: | |
Die HAML/SASS-Files liegen in `/mein/projektfolder/sass` & | |
`/mein/projektfolder/haml`. Der Watchdog wird mit | |
`watcher /mein/projektfolder/` | |
aufgerufen. Er überwacht damit die HAML/SASS-Verzeichnisse | |
und schreibt bei Änderungen die neuen Versionen in | |
`/mein/projektfolder/output` und `/mein/projektfolder/css`. |
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
irb(main):004:0> load_bridge_support_file "Security.bridgesupport" | |
=> main | |
irb(main):004:0> SecKeychainAddGenericPassword( nil, 1, "a", 1, "b", 1, Pointer.new_with_type("v")) | |
Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file TargetData.cpp, line 397. | |
Abort trap | |
…THE END |
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
PATH="$PATH:/usr/local/bin" macruby_deploy --embed --compile "$TARGET_BUILD_DIR/$PROJECT_NAME.app" | |
install_name_tool -change /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib "@executable_path/../Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib" "$TARGET_BUILD_DIR/$PROJECT_NAME.app/Contents/MacOS/$PROJECT_NAME" | |
for F in $TARGET_BUILD_DIR/$PROJECT_NAME.app/Contents/Resources/*.rbo; do | |
install_name_tool -change /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib "@executable_path/../Frameworks/MacRuby.framework/Versions/0.5/usr/lib/libmacruby.dylib" "$F" | |
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
// ==UserScript== | |
// @name YUI-in-GM Example: Babelfish YUI Panel | |
// @namespace http://developer.yahoo.com/yui/examples/greasemonkey/ | |
// @description (v20070103.1) Highlight a word or phrase with your mouse on yuiblog.com or news.yahoo.com or carlo.zottmann.org, hold the Shift key when you let go of the mouse button, and the marked text will be translated using Babelfish and displayed in a YUI panel. | |
// @author Carlo Zottmann <zottmann@yahoo-inc.com> | |
// @include http://*yuiblog.com/* | |
// @include http://news.yahoo.com/* | |
// @include http://carlo.zottmann.org/* | |
// ==/UserScript== |
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
[ | |
{ | |
"url":"http://twitter.com/teleschau/statuses/9006452822", | |
"created_at":"2010-02-12T12:29:32Z", | |
"tweet":"teleschau: AL Na endlich: Kate Nashs zweites Album erscheint im April.", | |
"link_tag":null, | |
"tags": | |
[ | |
"music", |
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
/*jslint browser: true, devel: true, onevar: true, undef: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true */ | |
/*global jQuery: false */ | |
"use strict"; | |
/** | |
* @module jQuery | |
*/ | |
/** |
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
[./test/src/error.js] Lint at line 1 character 1: 'x' is not defined. | |
x = "is not defined"; | |
jslint: No problems found in ./test/src/good.js | |
[./test/src/error.css] Lint at line 2 character 1: Expected a tagName, and instead saw omg-is-not-a-tagname. | |
omg-is-not-a-tagname { | |
jslint: No problems found in ./test/src/good.css | |
<testsuite failures='1' time='1.155' errors='1' tests='1' skipped='0' name='org.mikewest.static.jslint.css.error'> | |
<testcase time='1.155' name='testJSLint' classname='org.mikewest.static.jslint.css.error'> |
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
javascript:(function(){title=%22%22;output=%22%22;candidatesA=document.getElementsByTagName(%22a%22);candidatesTD=document.getElementsByTagName(%22td%22);for(cand=null,i=0;(cand=candidatesA[i]);i++){match=cand.href.match(/(\/public\/view_image\.php\?[^'$]+)/i);if(match!=null){output+=%22<img%20src='http://www.ishotmyself.com%22+match[1]+%22&m=img'%20border='1'%20/><br/><br/>%22;}}for(cand=null,i=0;(cand=candidatesTD[i]);i++){if(cand.getAttribute(%22class%22)==%22heading%22){title=cand.innerHTML;title=title.replace(/<[^>]+>/g,%22%22);title=title.replace(/\s+/g,%22%20%22);break;}}document.write('<html><head><title>'+title+'</title></head><body>\n<h2>'+title+'</h2><center>'+output+'\n</center></body></html>');})(); |
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
jQuery.compareArray = function( array1, array2 ) { | |
var comparisons = $.map( array1, function( value, i ) { | |
return ( value === array2[ i ] ); | |
}); | |
comparisons = $.unique( comparisons ); | |
return ( comparisons.length === 1 && comparisons[0] === true ); | |
} | |