This file contains hidden or 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.color-window: argb:EE373B47, #373B47 | |
| rofi.color-normal: argb:00373B47, #737783, argb:00373B47, argb:00373B47, #f9f9f9 | |
| rofi.color-urgent: argb:00373B47, #cc6666, argb:e54b5160, argb:00373B47, #f9f9f9 | |
| rofi.color-active: argb:00373B47, #65acff, argb:e44b5160, argb:00373B47, #f9f9f9 | |
| rofi.width: 30 | |
| rofi.lines: 16 | |
| rofi.font: Open Sans Light 25 | |
| rofi.bw: 0 | |
| rofi.padding: 40 | |
| rofi.eh: 1 |
This file contains hidden or 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
| local module = {} | |
| module.debugging = false -- whether to print status updates | |
| local eventtap = require "hs.eventtap" | |
| local event = eventtap.event | |
| local inspect = require "hs.inspect" | |
| local keyHandler = function(e) | |
| local watchFor = { |
This file contains hidden or 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 org.springframework.jdbc.core.BeanPropertyRowMapper; | |
| import java.beans.PropertyDescriptor; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.time.LocalDate; | |
| import java.time.LocalDateTime; | |
| import java.time.LocalTime; | |
| public class Jsr310SupportedBeanPropertyRowMapper<T> extends BeanPropertyRowMapper<T> { |
This file contains hidden or 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 CoreGraphics | |
| func printDisplays() { | |
| var displayCount: UInt32 = 0; | |
| var result = CGGetActiveDisplayList(0, nil, &displayCount) | |
| if (result != 0) { | |
| println("error: \(result)") | |
| return | |
| } | |
| let allocated = Int(displayCount) |
This file contains hidden or 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
| /* | |
| compile with: | |
| gcc -shared -fPIC fix_umask.c -o fix_umask.so | |
| edit /usr/bin/subl to include (fix the path to fix_umask.so if necessary): | |
| #!/bin/sh | |
| export LD_PRELOAD=/opt/sublime_text/fix_umask.so | |
| exec /opt/sublime_text/sublime_text "$@" |
This file contains hidden or 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
| (function () { | |
| // Bootstrap provided getPosition uses offsetWidth and offsetHeight to calculate | |
| // the positioning of the tooltip. SVG Elements do not have this property because | |
| // SVG does not layout elements, it assumes elements are always positioned. | |
| // This replaces their implementation for SVG elements, and utilizes getBoundingClientRect. | |
| var getPosition = $.fn.tooltip.Constructor.prototype.getPosition; | |
| $.fn.tooltip.Constructor.prototype.getPosition = function (inside) { | |
| var svgParent = this.$element.parents('svg'); | |
| // Only apply to SVG children | |
| // Test for iOS 3/BlackBerry |