Skip to content

Instantly share code, notes, and snippets.

View nvlled's full-sized avatar

Ronald T. Casili nvlled

  • Philippines
View GitHub Profile
@nvlled
nvlled / rc.lua
Created April 7, 2018 08:01 — forked from yvon/rc.lua
Awesome (window manager) configuration opening terminal in focused client working directory
awful.key({ modkey, }, "Return",
function ()
pid = client.focus.pid
cpid = string.gsub(awful.util.pread('pgrep -P ' .. pid), "[\r\n]+$", "")
cwd = string.gsub(awful.util.pread('readlink /proc/' .. cpid .. '/cwd'), "[\r\n]+$", "")
if string.len(cwd) > 0 then
awful.util.spawn(terminal .. ' -cd ' .. cwd)
else
awful.util.spawn(terminal)
end
@nvlled
nvlled / css_colors.js
Last active October 15, 2016 10:01 — forked from bobspace/css_colors.js
All of the CSS Color names as an array in javascript.
// CSS Color Names
// Compiled by @bobspace.
//
// A javascript array containing all of the color names listed in the CSS Spec.
// The full list can be found here: http://www.w3schools.com/cssref/css_colornames.asp
// Use it as you please, 'cuz you can't, like, own a color, man.
var CSS_COLOR_NAMES = {"aliceblue":1, "antiquewhite":1, "aqua":1, "aquamarine":1, "azure":1, "beige":1, "bisque":1, "black" :1, "blanchedalmond":1, "blue":1, "blueviolet":1, "brown":1, "burlywood":1, "cadetblue":1, "chartreuse":1, "chocolate":1, " coral":1, "cornflowerblue":1, "cornsilk":1, "crimson":1, "cyan":1, "darkblue":1, "darkcyan":1, "darkgoldenrod":1, "darkgray ":1, "darkgrey":1, "darkgreen":1, "darkkhaki":1, "darkmagenta":1, "darkolivegreen":1, "darkorange":1, "darkorchid":1, "dark red":1, "darksalmon":1, "darkseagreen":1, "darkslateblue":1, "darkslategray":1, "darkslategrey":1, "darkturquoise":1, "dark violet":1, "deeppink":1, "deepskyblue":1, "dimgray":1, "dimgrey":1, "dodgerblue":1, "firebrick":1, "floralwh