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
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
doc = Nokogiri::HTML(open('http://disqus.com/api/docs/')) | |
api = {} | |
doc.css('ul#resources h4 a').each do |section_link| | |
section_name = section_link.content |
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
13:18:34.294 DEBUG akka://ENSIME/user/ensime-main/tcp-server/con1/17 o.e.s.RequestHandler - CompletionsReq(SourceFileInfo(/Users/sandric/projects/TestAndroidProject/src/main/java/test/app/MainActivity.java,None,Some(/Users/sandric/projects/TestAndroidProject/.ensime_cache/scratch/source_file_contents_55420_1_16)),341,1000000,false,true) | |
13:18:34.294 DEBUG akka://ENSIME/user/ensime-main/project o.e.c.Project - received handled message CompletionsReq(SourceFileInfo(/Users/sandric/projects/TestAndroidProject/src/main/java/test/app/MainActivity.java,None,Some(/Users/sandric/projects/TestAndroidProject/.ensime_cache/scratch/source_file_contents_55420_1_16)),34 | |
13:18:34.317 INFO None o.e.c.j.JavaCompiler - Parsed and analyzed for trees: 22ms | |
13:18:34.320 DEBUG akka://ENSIME/user/ensime-main/tcp-server/con1/17 o.e.s.RequestHandler - received handled message CompletionInfoList(suf,List()) in state receive | |
13:18:35.228 DEBUG akka://ENSIME/user/ensime-main/tcp-server/con1/18 o.e.s.RequestHandler - TypecheckFileReq(Sou |
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
require 'rspec' | |
class Array | |
def custom_flatten | |
self.reduce([]) do |result, entry| | |
entry.kind_of?(Array) ? result += entry.custom_flatten : result << entry | |
end | |
end | |
end |
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
rofi usage: | |
rofi [-options ...] | |
Command line only options: | |
-no-config Do not load configuration, use default values. | |
-v,-version Print the version number and exit. | |
-dmenu Start in dmenu mode. | |
-display [string] X server to contact. | |
${DISPLAY} | |
-h,-help This help message. |
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
" Settings | |
set nohud | |
set nosmoothscroll | |
set noautofocus " The opposite of autofocus; this setting stops | |
" sites from focusing on an input box when they load | |
set typelinkhints | |
let searchlimit = 30 | |
let scrollstep = 70 | |
let barposition = "bottom" |