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
| /** | |
| * Fake Password / Random Password | |
| */ | |
| function makeRandPass($length=5){ | |
| $out = ""; | |
| while($length-->0){ | |
| $out.=chr(rand(ord('A'),ord('z'))); | |
| } | |
| return $out; |
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 ruby | |
| # ========================================================================== | |
| # = Use this to update to the latest version of Chromium from the buildbot | |
| # = archives. This is for OS X only, fork and adapt to your needs, if on a | |
| # = different system. | |
| # = | |
| # = Copyleft license with no warranty at all, jens alexander ewald, 2011 | |
| # ========================================================================== | |
| require "open-uri" |
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
| <div class="search"> | |
| <form method="get" id="searchform" action="http://194.95.111.57/~ideblog"> | |
| <fieldset> | |
| <input name="s" type="text" onfocus="if(this.value=='Search') this.value='';" onblur="if(this.value=='') this.value='Search';" value="Search"> | |
| <button type="submit"></button> | |
| </fieldset> | |
| </form> | |
| <!-- nur diese zeile: --> |
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
| on run argv | |
| tell application "Chromium" | |
| activate | |
| set theURL to "http://" & item 1 of argv | |
| if (count of windows) is equal to 0 then | |
| tell application "System Events" | |
| keystroke "n" using {command down} | |
| 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
| # use a simple defer | |
| defer = (func,args...) -> setTimeout func.apply(null, args), 1 | |
| # test defer | |
| greet = (names...) -> | |
| lastname = names.pop() if names.length > 2 | |
| names = names.join ", " | |
| names += " and #{lastname}" if lastname | |
| console.log "Hello #{names}!" |
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
| $(document).ready(function() { | |
| // Verhindere das Kontextmenü | |
| $('body').bind('contextmenu',function(e) {e.preventDefault();}); | |
| // Ein paar Variablen | |
| var slides = $('body > div.content'); | |
| var counter = 0; | |
| var num_slides = slides.size(); | |
| $(document).bind('mousedown',function(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
| --- Fix the Arduino Serial Port in use Issue on OS X Lion | |
| --- copyleft jens alexander ewald, ififelse.net | |
| --- based on a google search with the keywords: | |
| --- "osx lion arduino port already in use" | |
| --- Credit also to this bolg entry: http://marcosc.com/2011/10/arduino-java-error-serial-port-already-in-use/ | |
| --- Download a compiled version here: http://ififelse.net/get/ArduinoLionFix.zip | |
| try | |
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
| # =========================================== | |
| # = Simple JSON to File Storage Feature = | |
| # = = | |
| # = THIS IS FOR DEMO PURPOSE ONLY!!! = | |
| # = = | |
| # = DO NOT USE IN PRODUCTION CODE! = | |
| # = = | |
| # = (c) Copyleft 2011 jens alexander ewald. = | |
| # = http://ififelse.net | github.com/jens-a-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
| /* | |
| [Teil 2 - CSS] | |
| Beispiele zum Start | |
| */ | |
| /** SELEKTOR Beispiele **/ | |
| /* | |
| Der einfachste Selektor ist der Tag-Name. | |
| "html" selektiert alle Elemente in der <html></html> | |
| Node des Dokumentes - also alle :) |
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
| /* | |
| Hi, Christoph, sorry for english comments... | |
| Entspricht es deiner Vorstellung? | |
| "Durchklicken" kann auch gehen, aber da bin ich gerade | |
| zu faul... | |
| Wie zu benutzen: Auf eine Jquery Site gehen, die Console öffnen | |
| und dann folgende Zeile pasten + Enter: | |