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
| // | |
| // UIControls.m | |
| // PhoneGap | |
| // | |
| // Created by Michael Nachbaur on 13/04/09. | |
| // Copyright 2009 Decaf Ninja Software. All rights reserved. | |
| // | |
| #import "UIControls.h" |
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
| @mixin rgba-background($color, $opacity) { | |
| background-color: $color; | |
| background-color: rgba($color, $opacity); | |
| background-color: transparent\9; | |
| filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{'#'+hex(round($opacity*255)) + '' + hex(red($color)) + '' + hex(green($color)) + '' + hex(blue($color))},endColorstr=#{'#'+hex(round($opacity*255)) + '' + hex(red($color)) + '' + hex(green($color)) + '' + hex(blue($color))}); | |
| zoom: 1; | |
| } |
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
| /* iOS Native App Default Style implemented in CSS */ | |
| /* Bootstrapping … */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| font-size: inherit; | |
| -webkit-tap-highlight-color: rgba(0,0,0,0); | |
| } |
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
| /* iOS Native App Default Style implemented in CSS */ | |
| /* Bootstrapping … */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| font-size: inherit; | |
| -webkit-tap-highlight-color: rgba(0,0,0,0); | |
| } |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <style> | |
| #theButton, #theTextarea { | |
| /* | |
| Position the button and the textarea at the exact same | |
| position initially. Also make them equally large. | |
| */ |
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
| # install AFP | |
| # from: http://ubuntuforums.org/showthread.php?t=410274 | |
| mkdir -p ~/src/netatalk | |
| cd ~/src/netatalk | |
| sudo aptitude install devscripts cracklib2-dev dpkg-dev libssl-dev | |
| apt-get source netatalk | |
| sudo apt-get build-dep netatalk | |
| # this folder name may change depending on the version of netatalk | |
| cd netatalk-2.0.5 |
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
| function debugg_multiple(elements, attrs) { | |
| if (attrs == undefined) | |
| attrs = []; | |
| string = ""; | |
| for (var i = elements.length - 1; i >= 0; i--){ | |
| string = string + debugg(elements[i], attrs) + "<br>"; | |
| }; | |
| return string; | |
| } |
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 HTTPServer: | |
| # useful to test your pages/api calls! | |
| class HTTPServer | |
| def initialize(port, body) | |
| require 'socket' | |
| @server = Thread.new do | |
| server = TCPServer.open port | |
| loop do |
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 sh | |
| echo "Use current directory as default search scope in Finder" | |
| defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" | |
| echo "Show Path bar in Finder" | |
| defaults write com.apple.finder ShowPathbar -bool true | |
| echo "Disable the Ping sidebar in iTunes" | |
| defaults write com.apple.iTunes disablePingSidebar -bool true |
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
| /** | |
| * ping for jQuery | |
| * | |
| * @auth Jessica | |
| * @link http://www.skiyo.cn/demo/jquery.ping/ | |
| * | |
| */ | |
| (function($) { | |
| $.fn.ping = function(options) { | |
| var opts = $.extend({}, $.fn.ping.defaults, options); |