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
/* | |
* Example jshint configuration file for Pebble development. | |
* | |
* Read: http://developer.getpebble.com/blog/2014/01/12/Using-JSHint-For-Pebble-Development/ | |
* And check out the full documentation at http://www.jshint.com/docs/options/ | |
*/ | |
{ | |
// Declares the existence of a global 'Pebble' object | |
"globals": { "Pebble" : true }, |
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
# -*- coding: utf-8 -*- | |
import sys | |
import codecs | |
import re | |
from bs4 import BeautifulSoup | |
import requests | |
reload(sys) | |
sys.setdefaultencoding("utf-8") |
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 assert = require('assert'), | |
sinon = require('sinon'); | |
describe("Testing sinon useFakeTimers", function() { | |
it('sinon faking timer should work with small intervals', function() { | |
var clock = sinon.useFakeTimers(); | |
var spy = sinon.spy(); | |
setInterval(spy, 100); | |
assert(! spy.calledOnce); |
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 disqusComments(cursor) { | |
var api_key = "YOUR_API_KEY"; | |
var forum = "YOUR_FORUM"; | |
var url = "https://disqus.com/api/3.0/forums/listThreads.json?api_key=" + api_key + "&forum=" + forum; //+ "&limit=100"; | |
if (cursor) { | |
url = url + "&cursor=" + cursor; | |
} |
NewerOlder