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
/*! | |
* | |
* Automatic Responsive screenshots creation with PhantomJS and CasperJS. | |
* Adapted from the Responsive Design Workflow book by Stephen Hay (http://responsivedesignworkflow.com/). | |
* | |
* Usage instructions: | |
- Install PhantomJS (http://phantomjs.org/) and CasperJS (http://casperjs.org/) | |
- Save this script as `screenshots-multipages.js` in a folder somewhere in your filesystem | |
- In the same folder, create a subfolder called `screenshots` (defined in `screenshotFolder` variable) | |
- Define the URLs you want to process in `baseUrl` (string) and `links` (array) variables |
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
<snippet> | |
<content> | |
<![CDATA[ | |
<!-- Save File as .sublime-snippet --> | |
<snippet> | |
<content> | |
<![CDATA[ | |
<!-- Type your snippet here --> |
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
VAL=$(defaults read com.apple.finder CreateDesktop); | |
if [ $VAL == 0 ]; then | |
osascript -e 'tell app "System Events" to display dialog "Your desktop has been restored."' | |
defaults write com.apple.finder CreateDesktop -bool true | |
killall Finder | |
else | |
osascript -e 'tell app "System Events" to display dialog "Now hiding your desktop."' | |
defaults write com.apple.finder CreateDesktop -bool false | |
killall Finder | |
fi |
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
# MOUNT SERVER | |
osascript -e 'tell app "Finder" to open location "smb://$USER:$PASS@$SERVER"' | |
# SLEEP - PROVIDES SYSTEM TIME TO MOUNT THE VOLUME | |
sleep 5 | |
# DEFINE ACTIVE PROJECT VARIABLES | |
A_LOG="PATH-TO-A-LOG-DIRECTORY/ACTIVE_SYNC_LOG.txt" | |
A_SOURCE="SOURCE-DIRECTORY" | |
A_TARGET="REMOTE-TARGET-DIRECTORY" |
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
^(https://www\.|http://www\.|https://|http://)(\S+) |
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> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width"> | |
<!-- Place favicon.ico and apple-touch-icon.png in the root directory --> |
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
<script type="text/javascript"> | |
$(document).ready(function(){ | |
// Your code here | |
}); | |
</script> |