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
tell application "Finder" | |
set thisFolder to (target of front window) as Unicode text | |
set posixPath to quoted form of POSIX path of thisFolder | |
do shell script "/Applications/Sublime\\ Text\\ 2.app/Contents/SharedSupport/bin/subl " & posixPath | |
end tell |
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
var obs = new can.Observe({}) | |
obs.bind('change', func) // Fires once (then, once post timeout) -> just event? | |
obs.delegate('*','change',func) // Fires once (then, once post timeout) -> just event? | |
obs.bind('changes', func) // Fires twice (then, once post timeout) -> ev, attr, how, newVal, oldVal | |
obs.delegate('*','changes', func) // Fires twice (then, once post timeout) -> ev, attr, how, newVal, oldVal | |
// Should we differentiate between change and changeds? | |
obs.bind('changed', func); // Fires three times post timeout -> ev, attr, how, newVal, oldVal |
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
# Configs | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config secondsBetweenRepeat 0.1 | |
config checkDefaultsOnLoad true | |
config focusCheckWidthMax 3000 | |
config keyboardLayout querty | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false |
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
#!/usr/bin/python | |
""" | |
PlexConnect | |
Sources: | |
inter-process-communication (queue): http://pymotw.com/2/multiprocessing/communication.html | |
""" | |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 7 columns, instead of 4 in line 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
Tuesday,09,July,2013,21:06:39:41114,VCDS Version: Release 11.11.6,Data version: 20121223 | |
1K0 907 115 T,ADVMB,2.0l R4/4V TFSI 0010, | |
,,G014,F2,G015,F0,G015,F1,G015,F2,G016,F0,G031,F0,G103,F0,G115,F2,G115,F3,G143,F0,G230,F0,G230,F1, | |
Marker,TIME,Group 14 - Field 2,TIME,Group 15 - Field 0,TIME,Group 15 - Field 1,TIME,Group 15 - Field 2,TIME,Group 16 - Field 0,TIME,Group 31 - Field 0,TIME,Group 103 - Field 0,TIME,Group 115 - Field 2,TIME,Group 115 - Field 3,TIME,Group 143 - Field 0,TIME,Group 230 - Field 0,TIME,Group 230 - Field 1, | |
,STAMP,Misfire - Sum Counter,STAMP,Cylinder 1,STAMP,Cylinder 2,STAMP,Cylinder 3,STAMP,Cylinder 4,STAMP,Lambda Sensor - Current Value,STAMP,Current - Fuel Pressure,STAMP,Boost Pressure - (specified),STAMP,Boost Pressure - (actual),STAMP,Engine Speed,STAMP,Rail Pressure - (specified),STAMP,Rail Pressure - (actual), | |
,,,,,,,,,,,,,, bar,, mbar,, mbar,, /min,, bar,, bar, | |
,0.00,0,0.13,0,0.13,0,0.13,0,0.25,0,0.38,0.98,0.52,4.94,0.64,600.0,0.64,1060.0,0.77,1640,0.89,54.64,0.89,54.69, | |
,1.03,0 |
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 circles(x,y,r,g,b,a,l){ | |
if(count % ~~(rand(1))){ | |
return; | |
} | |
var scale1 = Math.pow(r, 3) / slider1; | |
var scale2 = Math.pow(g, 3) / slider2; | |
ctx.fillStyle = rgba(r,g,b,slider4); |
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
<nav> | |
<ul> | |
<li><a href="#">Home</a></li> | |
<li><a href="#">Categories</a></li> | |
<li><a href="#">Blog</a></li> | |
</ul> | |
</nav> | |
<div class="content"> | |
<div id="menu">Menu</div> |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
Wed Mar 3 06:00:00 2021 daemon.err collectd[19797]: Exiting normally. | |
Wed Mar 3 06:00:00 2021 daemon.err collectd[19797]: collectd: Stopping 2 read threads. | |
Wed Mar 3 06:00:00 2021 daemon.err collectd[19797]: collectd: Stopping 5 write threads. | |
Wed Mar 3 06:00:00 2021 daemon.err collectd[19797]: ping plugin: Shutting down thread. | |
Wed Mar 3 06:00:00 2021 daemon.err collectd[19797]: exec plugin: Sent SIGTERM to 19897 | |
Wed Mar 3 06:00:00 2021 daemon.err collectd[25365]: configfile: stat (/etc/collectd/conf.d) failed: No such file or directory | |
Wed Mar 3 06:00:00 2021 daemon.err collectd[25365]: plugin_load: plugin "irq" successfully loaded. | |
Wed Mar 3 06:00:00 2021 daemon.err collectd[25365]: plugin_load: plugin "entropy" successfully loaded. | |
Wed Mar 3 06:00:00 2021 daemon.err collectd[25365]: plugin_load: plugin "conntrack" successfully loaded. | |
Wed Mar 3 06:00:00 2021 daemon.err collectd[25365]: plugin_load: plugin "ping" successfully loaded. |
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
// run as: node index.js --port=1234 --count=512 --threads=18 --res=2400 | |
const { Cluster } = require("puppeteer-cluster"); | |
const fs = require("fs"); | |
var argv = require("yargs/yargs")(process.argv.slice(2)).argv; | |
(async () => { | |
let maxConc = argv.threads || 4; | |
let mutliples = argv.count || 10; | |
let res = argv.scale || 2; |
OlderNewer