Skip to content

Instantly share code, notes, and snippets.

Per Ejeklint ejeklint

Block or report user

Report or block ejeklint

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
View orgnr
Det här lirar bra för normala personnummer:
(?:19|20)?\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[-+]?\d{4}
Validerar det mesta men märker inte om februari har dag 30 eller 31. Har ni samordningsnummer med skulle jag förkrångla till
(?:19|20)?\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12678]\d|[39][01])[-+]?\d{4}
eller förenkla till
@ejeklint
ejeklint / gist:4714653
Last active Dec 12, 2015
Squirrel code for controlling a LED strip with addressable LEDs using the almighty WS2801 driver.
View gist:4714653
//
// WS2810 RGB LED Driver Controller and Demo usage
//
//
// A selection of predefined colours. Add to taste.
//
enum Colour {
red = "\xff\x00\x00",
green = "\x00\xff\x00",
View gist:6252075
var nano = require('nano')('http://blablabla/');
String.prototype.toUnderscore = function(){
return this.replace(/([A-Z])/g, function($1){return "_"+$1.toLowerCase();});
};
// For all meetings
nano.db.list(function(err, body) {
body.forEach(function(db) {
if (!db.match(/meeting\//)) {
View gist:d16607b1182c60848fbb
Verifying that +ejeklint is my blockchain ID. https://onename.com/ejeklint
View keybase.md

Keybase proof

I hereby claim:

  • I am ejeklint on github.
  • I am ejeklint (https://keybase.io/ejeklint) on keybase.
  • I have a public key ASB6gBTg8MoWHlI90OElr89AJo8HOw-wiBtnd8GHIlR1wQo

To claim this, I am signing this object:

View tree.sh
#!/bin/sh
#######################################################
# UNIX TREE #
# Version: 2.3 #
# File: ~/apps/tree/tree.sh #
# By Dem Pilafian #
# #
# Displays Structure of Directory Hierarchy #
# ------------------------------------------------- #
# This tiny script uses "ls", "grep", and "sed" #
You can’t perform that action at this time.