Skip to content

Instantly share code, notes, and snippets.

sandric sandric

Block or report user

Report or block sandric

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1eb04c8b160210352194a65584792dd1
" 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 Dec 19, 2017
Rofi help output
View rofi -help
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 Dec 1, 2017
Custom flatten function for Citrusbyte application
View custom_flatten.rb
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 Jul 29, 2016
Trying hard to enable java autocompletions in emacs...
View ensime-output
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 Dec 17, 2015
Disqus api parser to YAML format
View disqus-api-parser.rb
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
You can’t perform that action at this time.