- Add
[[work_layout]]under[layouts]in~/.config/terminator/config
[layouts]
...
[[work_layout]]
[[[child0]]]
position = 49:24
type = Window
[[work_layout]] under [layouts] in ~/.config/terminator/config[layouts]
...
[[work_layout]]
[[[child0]]]
position = 49:24
type = Window
| enscript -B --margins=0:0:0:0 -o source.ps -f monospace@3/3 source.txt && ps2pdfwr outputfile.ps source.pdf |
| const {Cc,Ci} = require("chrome"); | |
| var prefs = require("sdk/preferences/service"); | |
| prefs.set('dom.indexedDB.warningQuota', 100); | |
| var pm = Cc["@mozilla.org/permissionmanager;1"] | |
| .getService(Ci.nsIPermissionManager); | |
| var ioService = Cc["@mozilla.org/network/io-service;1"] |
| #!/usr/bin/env node | |
| var path = require('path'), | |
| fs = require('fs'), | |
| YUI = require('yui').YUI, | |
| YUI_config = {}, | |
| Y = YUI(); | |
| var navigator = { | |
| userAgent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)' |
| Y.DOM.getId = function(node) { | |
| var id; | |
| // HTMLElement returned from FORM when INPUT name === "id" | |
| // IE < 8: HTMLCollection returned when INPUT id === "id" | |
| // via both getAttribute and form.id | |
| console.log('node='+node+' tagName='+node.tagName+' id='+node.id); | |
| if (node.id && | |
| !node.id.tagName && | |
| !node.id.item) { | |
| id = node.id; |
| [10:19:26,244] node=[object HTMLDivElement] tagName=DIV id=yui_3_8_0_2_1366186689375_1375 | |
| [10:19:26,249] TypeError: Value does not implement interface Element. @ https://www.clicrdv.com/assets/pro_fr.js?1366110192:23952 | |
| [10:19:26,249] node=https://www.clicrdv.com/pro#yui_3_8_0_2_1366186689375_1383 tagName=A id=yui_3_8_0_2_1366186689375_2620 | |
| [10:19:26,253] TypeError: Value does not implement interface Element. @ https://www.clicrdv.com/assets/pro_fr.js?1366110192:23952 | |
| [10:19:26,253] node=[object HTMLLIElement] tagName=LI id=yui_3_8_0_2_1366186689375_1650 | |
| [10:19:26,253] node=[object HTMLFieldSetElement] tagName=FIELDSET id=yui_3_8_0_2_1366186689375_1779 | |
| [10:19:26,254] TypeError: Value does not implement interface Element. @ https://www.clicrdv.com/assets/pro_fr.js?1366110192:23952 | |
| [10:19:26,260] node=[object HTMLDivElement] tagName=DIV id=yui_3_8_0_2_1366186689375_1374 | |
| [10:19:26,304] node=[object HTMLDivElement] tagName=DIV id=yui_3_8_0_2_1366186689375_1475 | |
| [10:19:26,305] TypeError: Value does not implement in |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| body {background: #111; color: green;} | |
| pre {width: 800px; margin: 50px auto;} | |
| </style> | |
| </head> | |
| <body> |
| style_for | |
| 'html.item', | |
| '#li.selected' do | |
| color = from_hex(:333) | |
| set :border '1px solid ' + rgba(color, .1) | |
| set_ie :lt, 10, :border '1px solid ' + color.to_hex | |
| set :color :333333 rgba(color, .1), '1px solid' | |
| # Takes an array like this : ["first string", :column1, "second string", :column2, "third string"] | |
| # and returns CONCAT('first string', CONCAT(column1, CONCAT('second string', CONCAT(column2, 'third string')))) | |
| # Not bullet proof but make it easier to concat str in SQL | |
| def concatify(parts) | |
| escaped = parts.map do |i| | |
| i.is_a?(Symbol) ? i.to_s : "'#{i}'" | |
| end | |
| "CONCAT( " +escaped[0..-2].join(', CONCAT(') + ", #{escaped[-1]}" + (')' * (parts.size - 1)) |