Skip to content

Instantly share code, notes, and snippets.

" 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"
@sandric
sandric / rofi -help
Created December 19, 2017 23:56
Rofi help output
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.
@sandric
sandric / custom_flatten.rb
Created December 1, 2017 05:50
Custom flatten function for Citrusbyte application
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
@sandric
sandric / ensime-output
Created July 29, 2016 10:22
Trying hard to enable java autocompletions in emacs...
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
@sandric
sandric / disqus-api-parser.rb
Last active December 17, 2015 00:29
Disqus api parser to YAML format
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