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
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
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
CREATE FUNCTION appendbar(s1 varchar) RETURNS varchar IMMUTABLE AS $$ | |
def appendbar(value): | |
value = value or "" | |
return value + "_bar" | |
return appendbar(s1) | |
$$ language plpythonu; | |
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 localdb = require('node-persist') | |
const when = require('when'); | |
class QueuedStorage { | |
constructor() { | |
this.storage = localdb.create({ ttl: true, logging: false}) | |
} |
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
#!/usr/bin/python | |
import urllib, urllib2, json | |
from bs4 import BeautifulSoup | |
import base64 | |
token="<github access token>" | |
base_jira = "https://issues.scala-lang.org/browse/SI-" | |
base_jira_api = "https://issues.scala-lang.org/rest/api/2/issue/SI-%s/comment" |
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
jQuery(function($) { | |
// returns an array of the potential selector components for the first element in the jQuery object. IDs, classes, and tagNames only. | |
var getSelectorComponents = function($el) { | |
var components = []; | |
var id = $el.attr('id'); | |
if (typeof(id)!='undefined' && /[^\s]/.test(id)) { | |
components.push('#'+id); | |
} |
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
def __init__(self, *args, **kwargs): | |
super(CpasbienSpider, self).__init__(**kwargs) | |
self.keywords = kwargs['keywords'].split(',') | |
print self.keywords | |
self.start_urls = [ | |
'http://cpasbien.pe/recherche'] |
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
reviews = LOAD '/tmp/reviews.avro' USING AvroStorage(); | |
reviews = LIMIT reviews 1000; | |
bar = FOREACH reviews GENERATE business_id, FLATTEN(varaha.text.SentenceTokenize(text)) AS sentences; | |
DUMP bar |
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
using System; | |
using System.Globalization; | |
using Autofac; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
class Good:IDisposable | |
{ |