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
sourcefile sourceline class memsize count | |
------------------------------------------------------ ---------- ---------------------------------- ------- ----- | |
<GEM:ethon-0.6.1>/lib/ethon/multi/operations.rb 144 FFI::Pointer 0 12426 | |
<GEM:ethon-0.6.1>/lib/ethon/multi/operations.rb 171 FFI::Pointer 0 7500 | |
<GEM:ethon-0.6.1>/lib/ethon/curls/options.rb 10 String 0 6200 | |
<GEM:ethon-0.6.1>/lib/ethon/curls/options.rb 79 String 0 6200 | |
<GEM:ethon-0.6.1>/lib/ethon/curls/options.rb 11 String 0 6200 | |
<GEM:ethon-0.6.1>/lib/ethon/curls/options.rb 10 String 25 3100 | |
<GEM:ethon-0.6.1>/lib/ethon/curls/options.rb 11 Stri |
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
module.exports = function(){ | |
// The theoretical bound on number of integers necessary to generate n primes | |
this.upperBound = function(num) { | |
return parseInt(num*(Math.log(num)+Math.log(Math.log(num)))); | |
} | |
this.composites = {} | |
this.currentPrime = 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
Traceback (most recent call last): | |
File "/home/shashwat/envs/rebelmouse/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest | |
self.test(*self.arg) | |
File "/mnt/local/home/shashwat/rebelmouse/community/tests/views/garyvee/test_pages.py", line 13, in test_pages | |
fp.test_success_response() |
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
[{"status": 2, "created_ts": 1418377124000, "isPublic": true, "page_settings": {"open_in_new_tab": false}, "tags": ["#wishes", "#macys", "#kids"], "url": "wishes", "site_id": 11, "about_html": "", "isUnlisted": false, "order": 0, "isStage": false, "isPrivate": false, "title": "wishes", "url_header_image": "", "type": 0, "id": 25}] |
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
Router.route('/meetings/add', { | |
name: 'addMeetingRoute', | |
template: 'addMeeting', | |
waitOn: function(){ | |
return [Meteor.subscribe('hearings'), Meteor.subscribe('events'), Meteor.subscribe('projects'), Meteor.subscribe('tasks'), Meteor.subscribe('meetings'), Meteor.subscribe('lawyers')]; | |
} | |
}); |
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 cache = {} | |
var counter = 0 | |
// Function to calculate levenshtein distance | |
function minDist(string1, string2) { | |
if(cache[string1] && cache[string1][string2]) | |
return cache[string1][string2] | |
if(!string1.length) | |
return cache_score(string1, string2, string2.length) |
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
from numpy import ndarray | |
import numpy as np | |
from collections import deque | |
import timeit | |
class RingBuffer(): | |
def __init__(self, shape, dtype=np.int): | |
self.shape = shape | |
self.size = self.shape[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
import plotly.plotly as p | |
import datetime | |
import time | |
import numpy as np | |
import json | |
from plotly.graph_objs import * | |
import timeit | |
class Plotter: |
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
import plotly.plotly as p | |
import datetime | |
import time | |
import numpy as np | |
import json | |
from plotly.graph_objs import * | |
import timeit | |
class Plotter: |
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
from visualize import Plotter | |
import time | |
plotly = Plotter({'streaming_token': 'YOUR_STREAMING_TOKEN'}) | |
for i in range(10): | |
time.sleep(5) | |
plotly.write(i, i) |
OlderNewer