Skip to content

Instantly share code, notes, and snippets.

@Dykam
Dykam / DarkMonokai.qss
Created September 16, 2020 20:37 — forked from Zren/DarkMonokai.qss
Dark Monokai - Quassel Theme (qss)
/**
** ____ _ ___ ___ _ _
** | _ \ | | | \/ | | | (_)
** | | \ |__ _ _ __| | __ | . . | ___ _ __ ___ | | __ __ _ _
** | | | | _` | '__| |/ / | |\/| |/ _ \| '_ \ / _ \| |/ // _` | |
** | |_/ /(_| | | | < | | | | (_) | | | | (_) | <| (_| | |
** |____/\__,_|_| |_|\_\ \_| |_/\___/|_| |_|\___/|_|\_\\__,_|_|
**
** Quassel Theme
**
@Dykam
Dykam / README.md
Last active May 15, 2018 14:52 — forked from erkal/README.md
Random Graph Generator

Random Graph Generator

Click anywhere to generate a new random graph.

  • The nodes are colored by the number of their neighbors.
  • Nodes with higher number of neighbours are bigger.
@Dykam
Dykam / _converter.js
Last active November 14, 2017 13:43 — forked from Dinnerbone/_notes.md
var r = {};
var visit = function(d, path) {
if(d.type !== "literal" || d.executable) {
r[path] = d;
}
if(d.children) {
for(var i in d.children) {
var key = d.children[i].type === "argument" ? "[" + i + "]" : i;
visit(d.children[i], path === undefined ? key : path + "/" + key);
}
public static final <T> T bestMatch(String search, Collection<T> options, double threshold) {
T bestObj = null;
double bestScore = 0.0D;
for (T obj : options) {
double score = LiquidMetal.score(obj.toString(), search);
if (score > bestScore) {
bestObj = obj;
bestScore = score;
} else if (score == bestScore) {
bestObj = null;
@Dykam
Dykam / README.md
Created February 28, 2012 19:12 — forked from Zegnat/README.md
Fixing your skip links. [JS]

Fixing your skip links.

Read Damon Muma on this. He proposes the following jQuery solution (inspired by Thompson, fixed by me):

// Apply focus properly when accessing internal links with keyboard in WebKit browsers.
$("a[href^='#']").not("a[href='#']").click(function() {
   $("#"+$(this).attr("href").slice(1)+"").focus();
});
browser.test '/',
test: ->
@clickAndWait link: 'Barnwood Dining Tables'
@assertTitle 'Old Wood Coffee Tables | Solid | Dining | Rustic | Round | Rectangle'
@assertElementPresent '//head/meta[@name="keywords" and @content="Old Wood Coffee Tables, Solid Old Wood Dining Tables, Rustic Dining Table"]'
@assertElementPresent '//head/meta[@name="description" and @content="Old Wood Coffee Tables, Solid Old Wood Dining Tables, Rustic Dining Table – Lake and Mountain Home for the best Custom, Dark, Natural, Round, Farm, Solid Pine, Trestle & Bench Dining Tables, Country Style, Cottage, Custom Old Wood Coffee Tables and more."]'
#Wood Chairs, Barnwood Benches & Stools Category
@clickAndWait link: 'Lake And Mountain Home'
@clickAndWait link: 'Wood Chairs, Barnwood Benches & Stools'
@assertTitle 'Casual Dining Chairs | Benches | Stools | Reclaimed | Wooden'
@Dykam
Dykam / rest.coffee
Created February 10, 2011 16:23 — forked from anonymous/rest.coffee
listen 80, -> [
"customers", session -> [
/(0-9)+/, (id) -> [
here ->
customer = customers[id]
if customer.isPrivate and @session.user.id isnt customer.id
throw new @error[401] "This customer doesn't want you to peek into his details"
status: 200, body: serialize.toJson customer
]
var json_data = JSON.stringify({
"STATUS_ID is": status,
"COMMAND is": command_str.trim(),
"RESULT is": result_str
},
null, '\n');
typeToName = ["gb", "rb", "bb", "yb", "sgb", "srb", "sbb", "syb", "sb", "sub", "td", "tdm", "db", "1eab", "2eab", "sbv", "sbh", "sbc", "pgb", "prb", "pbb", "pyb"];
var bitsPerChar = 14; // 14 bits fit in the CJK character range, 0x4E00 -> 0x9FCF
var arrowBits = Math.ceil(Math.log( 20 )/Math.log(2));
var amountBits = Math.ceil(Math.log( 256 )/Math.log(2));
var gameWidth = 11;
var gameHeight = 14;
var types = typeToName.length;
nameToType = [];
var i = types;
{
"from": "nus",
"tasks": [
{ "task": "systemmenu", "installIos": false, "version": 4.2, "region": "E" },
{ "task": "ios", "patchEsIdentify": false, "patchFakesign": false, "version": 70, "revision": 6687 },
{ "task": "channel", "name": "News Channel", "region": "J" },
{ "task": "title", "id": "000000010000001C", "revision": 1806, "patchEsIdentify": true, "patchFakesign": true, "patchNand": true, "from": "sd" }
]
}