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
import binascii
import hashlib
import json
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.ciphers import algorithms, Cipher, modes
from django.conf import settings
from pinecast.helpers import gravatar
import binascii
# import codecs
import hashlib
import json
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.ciphers import algorithms, Cipher, modes
from django.conf import settings
from pinecast.helpers import gravatar
import codecs
import hashlib
import json
import pyaes
from django.conf import settings
from pinecast.helpers import gravatar
@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",
@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) {
[data-node-type="structure"] .ace-line {
display: list-item;
list-style-type: decimal;
}
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);
<?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>
func<int>:foo = (): 123;
promise.then((result): result.foo(), (err): err.toString());