Skip to content

Instantly share code, notes, and snippets.

Sudsy sudsy

Block or report user

Report or block sudsy

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
@sudsy
sudsy / dabblet.css
Created Apr 17, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
.container {
background-color: red;
min-height:100px;
}
.element {
@sudsy
sudsy / dabblet.css
Created Apr 17, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
.container {
background-color: red;
}
.left {
float: left;;
@sudsy
sudsy / dabblet.css
Created Apr 17, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
.container {
height: 20px;
background-color: red;
overflow: hidden;
}
.left {
@sudsy
sudsy / dabblet.css
Created Apr 19, 2012
Expanding Text Box
View dabblet.css
/**
* Expanding Text Box
*/
#parent {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
margin-left: 50px;
margin-right: 50px;
}
@sudsy
sudsy / trycatchperformance
Last active Dec 22, 2015
Performance Testing of asynchronous functions using try catch blocks node.js see: http://www.lighthouselogic.com/try-catch-performance-in-node-js/
View trycatchperformance
var Benchmark = require('benchmark');
var fs = require("fs");
var j_ = 10000000;
function intensive(){
var s = 0;
for (var i = 0; i < j_; i++) s = i;
View trycatchwithexternaldomain
var Benchmark = require('benchmark');
var fs = require("fs");
var domain = require("domain");
var d = domain.create().on('error', function(err){ console.log("Caught" + err); process.exit();})
var j_ = 10000000;
function intensive(){
View nodeinternaldomain
var Benchmark = require('benchmark');
var fs = require("fs");
var domain = require("domain");
var d = domain.create().on('error', function(err){ console.log("Caught" + err); process.exit();})
var j_ = 10000000;
function intensive(){
@sudsy
sudsy / caught.js
Last active Dec 26, 2015 — forked from owenallenaz/caught.js
Showing that node.js domains do catch synchronous errors (caught.js). Showing that try catch can interfere with nodejs domains (notcaught.js).
View caught.js
var domain = require("domain");
var d = domain.create();
d.on("error", function() {
console.log("domain caught");
});
d.run(function() {
throw new Error("foo");
View application.css
.done {
opacity: 0.5;
text-decoration: line-through;
}
View udevadm info --export-db
P: /devices/LNXSYSTM:00
E: DEVPATH=/devices/LNXSYSTM:00
E: MODALIAS=acpi:LNXSYSTM:
E: SUBSYSTEM=acpi
P: /devices/LNXSYSTM:00/ICV0A12:00
E: DEVPATH=/devices/LNXSYSTM:00/ICV0A12:00
E: ID_VENDOR_FROM_DATABASE=Inside Contactless
E: MODALIAS=acpi:ICV0A12:
E: SUBSYSTEM=acpi
You can’t perform that action at this time.