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
| 1. Remove Speech Voices | |
| cd /System/Library/Speech/ | |
| sudo rm -rf Voices/* | |
| 2. Delete All System Logs in OS X | |
| sudo rm -rf /private/var/log/* | |
| 3. Delete QuickLook Caches |
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 checkclear(what){ | |
| if(!what._haschanged){ | |
| what.value=''; | |
| } | |
| what._haschanged=true; | |
| } | |
| <input onfocus="checkclear(this)" /> |
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
| var sliderValue = [2, 3, 4, 26, 39, 52, 65]; | |
| $(function() { | |
| $( "#slider" ).slider({ | |
| value:0, | |
| min: 0, | |
| max: 6, | |
| step: 1, | |
| slide: function( event, ui ) { | |
| $( "#amount" ).val( sliderValue [ ui.value ] ); |
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
| ~/Library/Application Support/iPhone Simulator/ |
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
| NSTimeInterval _interval = [dateattr doubleValue]; | |
| NSDate *date = [NSDate dateWithTimeIntervalSince1970:_interval]; | |
| n.date_ = date; |
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
| $ git checkout develop | |
| Switched to branch 'develop' | |
| $ git merge --no-ff myfeature | |
| Updating ea1b82a..05e9557 | |
| (Summary of changes) | |
| $ git branch -d myfeature | |
| Deleted branch myfeature (was 05e9557). |
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
| To check how osx manage sleep, type: | |
| pmset -g | grep hibernatemode | |
| hibernatemode = 3 - saves all memory to disk | |
| hibernatemode = 0 - keep memory active all the time | |
| To get super fast sleep, just type: | |
| sudo pmset -a hibernatemode 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
| require 'iconv' | |
| class String | |
| def to_permalink | |
| Iconv.iconv('ascii//translit//IGNORE', 'utf-8', self).first.gsub("'", "").gsub(/[^\x00-\x7F]+/, '').gsub(/[^a-zA-Z0-9-]+/, '-').gsub(/^-/, '').gsub(/-$/, '').downcase | |
| end | |
| end |
NewerOlder