Skip to content

Instantly share code, notes, and snippets.

View derblub's full-sized avatar
✌️
I might be interested in cooperation.

Daniel Kurdoghlian derblub

✌️
I might be interested in cooperation.
View GitHub Profile
@derblub
derblub / LICENSE.txt
Created September 28, 2011 14:34 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri <http://www.p01.org/releases/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
/**
* Like, basically PERFECT scrollbars
*/
/*
It's pure CSS.
Since a quick google search will confirm people going crazy about Mac OS Lion scrollbars...
this has no fade-out effect.
In Mac OS Lion, the lowest common denominator is always showing scrollbars by a setting.
-- Quick launchbar widget for Awesome WM
-- http://awesome.naquadah.org/wiki/Quick_launch_bar_widget/3.5
-- Put into your awesome/ folder and add the following to rc.lua:
-- local launchbar = require('launchbar')
-- local mylb = launchbar("/path/to/directory/with/shortcuts")
-- Then add mylb to the wibox.
local layout = require("wibox.layout")
local util = require("awful.util")
local launcher = require("awful.widget.launcher")
/* Original is in LESS and can be found here: https://gist.github.com/gefangenimnetz/3ef3e18364edf105c5af */
@mixin material-shadow($level:1){
@if $level == 1 {
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
@else if $level == 2 {
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}
@derblub
derblub / readme.md
Last active August 29, 2015 14:16 — forked from paulirish/readme.md

console.log wrap resolving for your wrapped console logs

I've heard this before:

What I really get frustrated by is that I cannot wrap console.* and preserve line numbers

We enabled this in Chrome DevTools via blackboxing a bit ago.

If you blackbox the script file the contains the console log wrapper, the script location shown in the console will be corrected to the original source file and line number. Click, and the full source is looking longingly into your eyes.

@derblub
derblub / javascript-trim-svg-whitespace.js
Created February 6, 2018 12:33 — forked from john-doherty/javascript-trim-svg-whitespace.js
Trim whitespace from SVG elements
function trimSvgWhitespace() {
// get all SVG objects in the DOM
var svgs = document.getElementsByTagName("svg");
// go through each one and add a viewbox that ensures all children are visible
for (var i=0, l=svgs.length; i<l; i++) {
var svg = svgs[i],
box = svg.getBBox(), // <- get the visual boundary required to view all children
@derblub
derblub / FreenasSetup.md
Created February 24, 2018 15:23 — forked from zenxedo/TrueNAS Setup.md
Ultimate FreeNAS 11.1 Setup

FreeNAS

This page was forked so be sure to check the Original for more and the links.

WARNING This page contains incomplete and possibly incorrect info. The page is constantly being edited and worked on. Many of these should work but some may be broken. Use at your own risk.

Create a "media" dataset

Create a dataset called "media" with directories for tv, movies, downloads
Give your dataset unix permissions to the default FreeNAS media user media:media
@derblub
derblub / mysql_lib.php
Created March 29, 2018 19:24
php7 functions mysql_*
<?php
/**
* Created by PhpStorm.
* User: PHPDuck.nl
* Date: 15-03-16
* Time: 09:48
* Version: 1.0;
*
* Use this file only if u are too lazy to rebuild your PHP / Mysql script
* People, stop using mysql_ please and go to mysqli_ or PDO
@derblub
derblub / ofxconverter.ipynb
Created April 4, 2018 15:02 — forked from josephfinlayson/ofxconverter.ipynb
Convert N26 CSV to OFX
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.