- Help -> Install New Software
- Add this: http://github.eclipsesource.com/jshint-eclipse/updates/
- Install JSHint. Studio will restart.
After successfull install, right click on your project:
- Properties:
| /* | |
| Ratings Stars | |
| (with as little code as possible) | |
| */ | |
| .rating { | |
| unicode-bidi: bidi-override; | |
| direction: rtl; | |
| text-align: center; | |
| } | |
| .rating > span { |
| .wrapper:hover label{ | |
| background-position:left bottom; | |
| } | |
| label{ | |
| background:url('http://img833.imageshack.us/img833/5959/stard.png') no-repeat left bottom; | |
| float:right; | |
| line-height:20px; | |
| padding-left:20px; | |
| height:15px; | |
| } |
| /* | |
| Ratings Stars | |
| (with as little code as possible) | |
| - Modified by @mprogano - | |
| */ | |
| .rating { | |
| unicode-bidi: bidi-override; | |
| direction: rtl; | |
| text-align: center; |
| /* | |
| * Set up your Git configuration | |
| */ | |
| git config --global user.email "you@yourdomain.com" | |
| git config --global user.name "Your Name" | |
| git config --global core.editor "nano" |
After successfull install, right click on your project:
| { | |
| "bitwise": true, | |
| "camelcase": true, | |
| "eqeqeq": true, | |
| "newcap": true, | |
| "indent": 4, | |
| "unused": true, | |
| "onevar": true, | |
| "undef": true, | |
| "trailing": true, |
| function getMonthStrings() { | |
| return [ | |
| 'January', | |
| 'February', | |
| 'March', | |
| 'April', | |
| 'May', | |
| 'June', | |
| 'July', | |
| 'August', |
| """ | |
| Simple xml serializer. | |
| @author Reimund Trost 2013 | |
| Example: | |
| mydict = { | |
| 'name': 'The Andersson\'s', | |
| 'size': 4, |
Problem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
| #!/bin/sh | |
| instruments -s devices \ | |
| | grep "(\d[.0-9]\+) \[[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}\]" \ | |
| | grep -o "[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}" \ | |
| | while read -r line ; do | |
| echo "Reseting Simulator with UDID: $line" | |
| xcrun simctl erase $line | |
| done |