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 config --global url."https://".insteadOf git:// |
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 class="post-share"> | |
| <a class="icon-facebook-sign" href="https://www.facebook.com/sharer/sharer.php?u={PAGE URL}"></a> | |
| <a class="icon-twitter-sign" href="https://twitter.com/intent/tweet?url={PAGE URL}&text={PAGE TITLE}}via={SITE NAME}"></a> | |
| <a class="icon-pinterest-sign" href="http://pinterest.com/pin/create/button/?url={PAGE URL}&media={POST IMAGE URL}&description={PAGE TITLE}" title="Pin It"></a> | |
| <a class="icon-google-plus-sign" href="https://plus.google.com/share?url={PAGE URL}"></a> | |
| </div> | |
| <script> | |
| // requires jQuery | |
| $('.post-share a').each(function() { |
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 chown -R `whoami` ~/.npm | |
| sudo chown -R `whoami` /usr/local/lib/node_modules | |
| sudo chown -R `whoami` /usr/local |
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
| // Dynamic project image galleries | |
| $('.project-item-wrapper').click(function(e) { | |
| e.preventDefault(); | |
| // .project-item-wrapper should have the page destination as its link src, this way is JS is disabled the user would still get to the images | |
| var link = $(this).attr('href'); | |
| $.ajax({ | |
| url: link, | |
| success: function( data ) { |
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
| // Switch img src for large displays | |
| $('.rs-img').each(function() { | |
| var baseWidth = 1140; | |
| // get current width | |
| var lgeScrn = $(window).innerWidth(); | |
| // activate if width is less than base width |
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
| $.fn.exists = function () { | |
| return this.length !== 0; | |
| } | |
| // usage | |
| $('.my-item').exists(); |
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
| $.ajax({ | |
| type: "GET", | |
| dataType: "jsonp", | |
| cache: false, | |
| url: "https://api.instagram.com/v1/users/140572/media/recent/?access_token=6277169.76495e2.ac7aa5ca54094298b10f8b6a527a9ec3", // Get user images | |
| // Get user iD - http://instagram-uid.herokuapp.com/ | |
| // "https://api.instagram.com/v1/tags/catwalk/media/recent?client_id=6277169&access_token=6277169.76495e2.ac7aa5ca54094298b10f8b6a527a9ec3", // Get Tagged images | |
| success: function(data) { | |
| for (var i = 0; i < 9; i++) { | |
| $("#instagram").append("<li><a target='_blank' rel='lightbox' href='" + data.data[i].images.standard_resolution.url + "'><img src='" + data.data[i].images.low_resolution.url +"'></img></a></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
| "scripts": { | |
| "start": "node node_modules/react-native/local-cli/cli.js start", | |
| "rc-start": "npm start -- --reset-cache", | |
| "clean": "rm -rf $TMPDIR/react-* && watchman watch-del-all && npm cache clean", | |
| "clean-start": "npm run clean && npm run rc-start", | |
| "fresh-install": "rm -rf $TMPDIR/react-* && watchman watch-del-all && rm -rf ios/build/ModuleCache/* && rm -rf node_modules/ && npm cache clean && npm install", | |
| "fresh-start" : "npm run fresh-install && npm run rc-start", | |
| "tron": "node_modules/.bin/reactotron" | |
| } |
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
| 'use strict'; | |
| angular.module('myApp').directive('numbersOnly', function () { | |
| return { | |
| restrict: 'A', | |
| require: 'ngModel', | |
| scope: { | |
| options: '=numbersOnly' | |
| }, | |
| link: function (scope, element, attrs, ngModel) { |
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
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
OlderNewer