Skip to content

Instantly share code, notes, and snippets.

View mattbasta's full-sized avatar
🌭
Still writing JavaScript

Matt Basta mattbasta

🌭
Still writing JavaScript
View GitHub Profile
@mattbasta
mattbasta / gist:0a61de4cd67ddd9b55f7
Created December 7, 2014 17:03
node octane results
node node_modules/.bin/benchmark-octane
hostname : bastamac.local
node version : v0.10.33
V8 version : 3.14.5.9
platform & arch : darwin x64
config : { target_defaults:
{ cflags: [],
default_configuration: 'Release',
defines: [ 'OPENSSL_NO_SSL2=1', 'OPENSSL_NO_SSL3=1' ],
@mattbasta
mattbasta / linkedList.bt
Last active August 29, 2015 14:16
Super basic implementation of linked lists in BType
object LinkedList {
with T;
LinkedListNode<T>:first;
LinkedListNode<T>:last;
int:length;
append(T:value) {
var node = new LinkedListNode<T>(self, value);
self.length = self.length + 1;
func<int>:foo = (): 123;
promise.then((result): result.foo(), (err): err.toString());
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<channel>
<title>Test</title>
<link>http://example.com</link>
<description>Just a RSS test</description>
<itunes:image foo="bar" />
<item>
<title>A title with some ç&apos;s ü&apos;s</title>
<link>http://example.com/test</link>
html {
-webkit-animation: rotate 30s linear 0s infinite;
}
@-webkit-keyframes rotate {
from {
-webkit-filter: hue-rotate(0);
/*-webkit-transform: rotate(0);*/
}
to {
-webkit-filter: hue-rotate(360deg);
[data-node-type="structure"] .ace-line {
display: list-item;
list-style-type: decimal;
}
@mattbasta
mattbasta / imageDownsize.js
Created January 13, 2016 01:23
Started working on an image resizing script for Lambda, but there's too many weird edge cases for me to finish it.
var fs = require('fs');
var path = require('path');
var aws = require('aws-sdk');
var im = require('imagemagick');
var s3 = new aws.S3({ apiVersion: '2006-03-01' });
var postProcessResource = function(resource, fn) {
@mattbasta
mattbasta / fontello.json
Created October 14, 2016 01:15
Pinecast fontello config
{
"name": "",
"css_prefix_text": "icon-",
"css_use_suffix": false,
"hinting": true,
"units_per_em": 1000,
"ascent": 850,
"glyphs": [
{
"uid": "e99461abfef3923546da8d745372c995",
import codecs
import hashlib
import json
import pyaes
from django.conf import settings
from pinecast.helpers import gravatar