Skip to content

Instantly share code, notes, and snippets.

View Lokua's full-sized avatar
🐐
 

Joshua Kleckner Lokua

🐐
 
View GitHub Profile
@Lokua
Lokua / hexcolors.txt
Created April 4, 2014 05:00
hex color list
0x000000
0x000080
0x0000C8
0x0000FF
0x000741
0x001B1C
0x002387
0x002900
0x002E20
0x002FA7
@Lokua
Lokua / audio-input-router.js
Last active August 29, 2015 14:06
max for live audio input routing helper script
/*
* Copyright 2014 Joshua Kleckner, http://lokua.net
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Lokua
Lokua / logger.js
Created September 6, 2014 12:11
Better max logging
/**
* Better max logging.
*
* @see http://compusition.com/writings/js-live-api-basics
* @see http://stackoverflow.com/a/4673436/2416000
*/
autowatch = 1;
Logger = new Global('Logger');
Logger.on = true;
@Lokua
Lokua / test.html
Created September 15, 2014 07:37
snippet for quickly banging out html tests
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<script src=""></script>
</head>
<style>
@Lokua
Lokua / gist:ea50938fae4316340bc7
Created September 15, 2014 08:24
css range slider
input[type=range] {
-webkit-appearance: none;
background-color: #ccc;
width: 200px;
height: 4px;
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
background-color: #fff;
@Lokua
Lokua / _muf.scss
Last active August 29, 2015 14:08
sass mixins, utility classes, and functions
//
// --- MIXINS
//
@mixin clearfix {
&:after {
content: '';
display: table;
clear: both;
}
@Lokua
Lokua / SassMeister-input-HTML.html
Created December 12, 2014 04:12
Generated by SassMeister.com.
<div class="w">
<div id="a">
<h1>a</h1>
<p>fun with colors</p>
</div>
<div class="content">
texttexttexttexttext
texttexttexttexttext
texttexttexttexttext
texttexttexttexttext
@Lokua
Lokua / JavaScript.tmLanguage
Created February 23, 2015 00:06
JavaScript.tmLanguage
<!-- fix regarding function params https://www.sublimetext.com/forum/viewtopic.php?f=3&t=6211 -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>JavaScript Syntax: version 2.0</string>
<key>fileTypes</key>
<array>
<string>js</string>
@Lokua
Lokua / ZipHelpers.java
Created December 17, 2015 03:07
zip helpers
package my.big.fucking.package;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
public class ZipHelpers {
/**
@Lokua
Lokua / qs.js
Last active January 19, 2016 11:58
query string script
export default {
/**
* Parse query string from path into POJO. If true is
* passed as 2nd argument, returns two member array
* of POJO and the query string portion
*
* @example
* ```js
* let path = 'http://foo.com/bar?a=1&b=2&c=3'