This file contains 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
{ | |
"GPSLatitudeRef": "N", | |
"GPSLatitude": [ 52, 39, 15.8 ], | |
"GPSLongitudeRef": "W", | |
"GPSLongitude": [ 0, 30, 20.45 ], | |
"GPSAltitudeRef": 0, | |
"GPSAltitude": 62.632075471698116, | |
"GPSTimeStamp": [ 19, 21, 42 ], | |
"GPSSpeedRef": "K", | |
"GPSSpeed": 0, |
This file contains 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
const ExifImage = require('exif').ExifImage; | |
new ExifImage({ image: './input-file.jpg' }, function (error, exifData) { | |
if (error) throw error; | |
const { gps } = exifData; | |
console.log(gps); | |
} |
This file contains 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' | |
const fs = require('fs') | |
const path = require('path') | |
const Trello = require('node-trello') | |
const trelloAuth = JSON.parse(fs.readFileSync('trello-credentials.json', 'utf8')) | |
const t = new Trello(trelloAuth.key, trelloAuth.token) | |
t.post(`/1/cards/${card.id}/attachments`, { |
This file has been truncated, but you can view the full file.
This file contains 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
This file contains 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
var Observable = (function() | |
{ | |
"use strict"; | |
/** | |
* @constructor | |
* @returns {{attach: Function, detach: Function, notify: Function}} | |
*/ | |
var constructor = function() | |
{ |
This file contains 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
expect\(([#a-zA-Z0-9,.'\(\) ]*?)\)\.toBe\(([#a-zA-Z0-9,.'\(\) ]*?)\); | |
expect($2).toBe($1); |
This file contains 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
// ==== Sample implementation | |
var modal = new Modal(); | |
modal.maximise(); // outputs "Error: undefined is not a method (windowInstance.maximise)" | |
MaximiseDecorator.addTo(modal); | |
modal.maximise(); // outputs "I'm going to maximse myself!" | |
MaximiseDecorator.removeFrom(modal); | |
modal.maximise(); // outputs "Error: undefined is not a method (windowInstance.maximise)" |
This file contains 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
Find: trace\(([A-Z a-z 0-9"'=_\-.+,\\/\(\)\[\]:#!<>%]*)\); | |
Replace: ExternalInterface.call("console.log", $1); |
This file contains 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 RateMe(ios_url, goog_url, usecount) { | |
if(!Ti.App.Properties.hasProperty('RemindToRate')) { | |
Ti.App.Properties.setString('RemindToRate', 0); | |
} | |
var remindCountAsInt = parseInt(Ti.App.Properties.getString('RemindToRate'), 10); | |
var newRemindCount = remindCountAsInt += 1; | |
if(remindCountAsInt === -1) { | |
// the user has either rated the app already, or has opted to never be | |
// reminded again. |
This file contains 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
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.psyked.co.uk%2Fflash%2Ffotb2011-highlight-1.htm&layout=standard&show_faces=false&width=450&action=recommend&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 30px; align: left; margin: 2px 0px 2px 0px"></iframe> |
NewerOlder