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 Spotify.php
<?php
//Uses WildPHP: https://github.com/super3/IRC-Bot/
// Namespace
namespace Command;
/**
* Gets info for a Spotify URI.
View resarg.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package resarg;
/**
*
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="Promediator-App">
<template>
<style>
:host {
position: absolute;
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-ripple/paper-ripple.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
View BingTranslatorAPI.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package cl.kelopez.bingtranslator;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
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:

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}
@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 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 / 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;
You can’t perform that action at this time.