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
| sudo apt-get install python-software-properties python g++ make | |
| sudo add-apt-repository ppa:chris-lea/node.js | |
| sudo apt-get update | |
| sudo apt-get install nodejs nodejs-dev npm |
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
| * 9d0cdd7 (origin/v1.0-bugs) Merge pull request #84 from propcom/bugfix-mernu | |
| |\ | |
| | * 900be12 (HEAD, origin/bugfix-mernu, bugfix-mernu) fixed menu merning | |
| |/ | |
| * 7108920 bugfix-public-check merged into bugs; resolves #83 |
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 id="pagination"> | |
| <ul> | |
| {% if paginate.previous %} | |
| <li>{{ paginate.previous.title | link_to: paginate.previous.url }}</li> | |
| {% endif %} | |
| {% for i in (1..paginate.pages) %} | |
| {% if paginate.current_page == i %} | |
| <li>{{ i }}</li> |
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
| |- public/ | |
| | |- js/ | |
| | | |- app/ | |
| | | | |- interactions.js | |
| | | | |- main.js | |
| | | | |- students.js | |
| | | |- lib/ | |
| | | | |- console.log.js | |
| | | | |- jquery-1.9.1.js | |
| | | | |- no-js.js |
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
| # auto completion | |
| if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
| . $(brew --prefix)/etc/bash_completion | |
| fi | |
| # coloured terminal | |
| export CLICOLOR=1 | |
| export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx | |
| # list all files |
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
| $company = \Company::find($companyId) | |
| ->with('users') | |
| ->first(); | |
| $users = $company->users()->paginate(10); |
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
| <?php | |
| /* | |
| $original = '+44 (0)1234 567 890'; | |
| $original = '0044 01234 567 890'; | |
| $original = '01234 567 890'; | |
| $original = '44 1234 567 890'; | |
| Result should always be: | |
| '+441234567890 |
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
| server { | |
| listen 80; | |
| server_name .example.co.uk.dev; | |
| access_log /usr/local/var/log/nginx/example.co.uk-access.log; | |
| error_log /usr/local/var/log/nginx/example.co.uk-error.log error; | |
| root /var/www/example.co.uk/public; | |
| index index.php index.html; |
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
| <!-- must define a width/height for this div in css --> | |
| <div id="google-map"></div> | |
| <script src="https://maps.googleapis.com/maps/api/js?sensor=true"></script> | |
| <script type="text/javascript"> | |
| function initialize() | |
| { | |
| var latLng = new google.maps.LatLng(52.29538, -1.54200); | |
| var mapOptions = { |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>SPConnectionFavorites</key> | |
| <array> | |
| <dict> | |
| <key>database</key> | |
| <string></string> | |
| <key>host</key> |