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 Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| start = performance.now(); | |
| //code | |
| console.log('add marker: ' + String(performance.now() - start) + 'ms'); |
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
| rk.waitFor( | |
| 'Model:Base' | |
| ).then(function(ModelBase, app){ | |
| app.polygon = app.polygon || {}; | |
| var PolygonModel = app.polygon.PolygonModel = ModelBase.extend({ | |
| /** | |
| * Location model used primarily for autofill results (but can be used | |
| * anywhere. |
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 countCSSRules() { | |
| var results = '', | |
| log = ''; | |
| if (!document.styleSheets) { | |
| return; | |
| } | |
| for (var i = 0; i < document.styleSheets.length; i++) { | |
| countSheet(document.styleSheets[i]); | |
| } | |
| function countSheet(sheet) { |
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
| { | |
| has_photo: false, | |
| sub_locations: [], | |
| hotel_count: 1, | |
| img_name: null, | |
| region_name: "Tolima", | |
| name: "Ibagué", | |
| avg_rate: 0, | |
| geometry: { | |
| coordinates: [ |
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
| //create a test module for app js files missing corresponding test modules | |
| grunt test-backfill --spec-dir=tests/specs | |
| //output backfill log, but don't write new files | |
| grunt test-backfill --no-write | |
| //run the spec.js | |
| grunt test --verbose | |
| //test the spec javascript |
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
| html{ | |
| background-color:grey; | |
| } | |
| .sample{ | |
| width:75px; | |
| height:28px; | |
| background-color:black; | |
| padding:40px; | |
| border: 15px solid white; |
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
| [core] | |
| excludesfile = /Users/jquinn/.gitignore_global | |
| [difftool "sourcetree"] | |
| cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
| path = | |
| [mergetool "sourcetree"] | |
| cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" | |
| trustExitCode = true | |
| [alias] | |
| st = status |
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
| _base.js (Model:Filter) | |
| Model:Base | |
| Base | |
| dependencies: [ | |
| Sync | |
| Base | |
| Cache | |
| Base | |
| util | |
| ] |
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
| import mapboxgl from 'mapbox-gl'; | |
| // FRAGILE: webpack failure to import css into javascript without explicit reference | |
| import '../node_modules/mapbox-gl/dist/mapbox-gl.css'; | |
| import MapboxDraw from '@mapbox/mapbox-gl-draw'; | |
| import '../node_modules/@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css'; | |
| const debounce = require("debounce"); | |
| // see webpack plugin for the R prefix while treeshaking | |
| import R, { | |
| compose, | |
| contains, |
OlderNewer