Skip to content

Instantly share code, notes, and snippets.

Kevin López Brante kddlb

Block or report user

Report or block kddlb

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 tryjsil.cs
// Decompiled with JetBrains decompiler
// Type: SillyDate.Program
// Assembly: SillyDate, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 7D76919F-64D5-414B-8485-4C75047D30F9
// Assembly location: C:\Users\kevin\source\repos\SillyDate\SillyDate\bin\Debug\SillyDate.exe
using System;
using System.Collections.Generic;
using System.Text;
View Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace SillyDate
{
class Program
@kddlb
kddlb / thermalparser.js
Created Aug 15, 2017
JSON "markup" to ESC/POS
View thermalparser.js
exports.parseToControlCommands = function (ob) {
let ns = "";
ob.input.forEach(function (t, number, ts) {
if (typeof(t) === "string") {
ns = ns.concat(t)
} else {
switch (t.command) {
case "tab":
ns = ns.concat("\x09");
break;
View ZNCLog-Regex.md

Message: ^\[(?'Date'\d{2}:\d{2}:\d{2})\] <(?'Nickname'.*)> (?'Message'.*)$

Notice: ^\[(?'Date'\d{2}:\d{2}:\d{2})\] -(?'Nickname'.*)- (?'Message'.*)$

Joins: ^\[(?'Date'\d{2}:\d{2}:\d{2})\] \*\*\* (?'Happening'Joins): (?'Nickname'.*) \((?'Hostmask'(?'Username'.*)@(?'Hostname'.*))\)$

PartsOrQuits:

@kddlb
kddlb / README.txt
Created Jun 17, 2016
SoundFont List, as JSON
View README.txt
patchMappings:
[0 ,2]
^-Bank, ^-Program
@kddlb
kddlb / recipe.conf
Created May 13, 2016
NGINX recipe for Polr and PHP 7
View recipe.conf
location / {
try_files $uri $uri/ /index.php?$query_string;
rewrite ^/([a-zA-Z0-9]+)/?$ /index.php?$1;
}
location ~ \.(php|phar)$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.(?:php|phar))(/.+)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
View api_oneliner.php
<?php
if ($argc > 1) {
date_default_timezone_set("UTC");
function udate($format, $utimestamp = null) {
if (is_null($utimestamp)) {
$utimestamp = microtime(true);
}
@kddlb
kddlb / getVoices.swift
Created May 1, 2016
Get all voices on an OS X system as a JSON
View getVoices.swift
#!/usr/bin/swift
import Foundation
import Cocoa
var voices = NSSpeechSynthesizer.availableVoices();
var locale = NSLocale.init(localeIdentifier: "en-us");
var voicesInfo = [String:AnyObject]();
for voice in voices {
View copy-and-paste.txt
[[inpt TUNE]]
~
AY {D 200; P 306.0:0 124.0:68}
_
n {D 60; P 124.0:0 188.0:39}
1OW {D 170; P 253.0:0 189.0:5 126.0:29 125.0:62 123.0:67 122.0:86}
~
w {D 100; P 180.0:0 150.0:60}
2EH {D 100; P 121.0:0}
n {D 70; P 114.0:0}
View keybase.md

Keybase proof

I hereby claim:

  • I am kddlb on github.
  • I am kddlb (https://keybase.io/kddlb) on keybase.
  • I have a public key whose fingerprint is F77A E07D 0D53 FE16 3467 CCC1 703A A2AC 782E 1DE6

To claim this, I am signing this object:

You can’t perform that action at this time.