[ Launch: Pattern grid - raster ] 4710427 by zeffii[ Launch: Pattern grid - raster ] 4659977 by roundrobin[ Launch: Pattern grid - 2 ] 4659021 by roundrobin[ Launch: Pattern grid - stripes ] 4657513 by roundrobin[ Launch: Pattern grid - wave ] 4647105 by roundrobin[ Launch: Pattern grid - elector ] 4647086 by roundrobin[ Launch: Pattern grid - elector ] 4647080 by roundrobin[ Launch: Pattern grid - 50-50 circles ] 4647076 by roundrobin[ Launch: Pattern grid - double quater circles ] 4647019 by roundrobin[ L
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" == "" ]; then | |
echo Usage: $0 pngfile | |
exit 0; | |
fi | |
FILE=`basename $1 .png` | |
if [ ! -e $FILE.png ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function string_to_slug (str) { | |
str = str.replace(/^\s+|\s+$/g, ''); // trim | |
str = str.toLowerCase(); | |
// remove accents, swap ñ for n, etc | |
var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;"; | |
var to = "aaaaeeeeiiiioooouuuunc------"; | |
for (var i=0, l=from.length ; i<l ; i++) { | |
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Convert an SVG file to a PNG file.""" | |
from argparse import ArgumentParser | |
import subprocess | |
import os.path | |
def main(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import fontforge | |
def main(file): | |
for font in fontforge.fontsInFile(file): | |
f = fontforge.open(u'%s(%s)' % (file, font)) | |
f.generate('%s.ttf' % font) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Custom Theme test | |
// Colors | |
// ------------------------------- | |
$custom: #057b6c !default; | |
// Buttons | |
// ------------------------------- | |
$button-custom-bg: $custom !default; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Forked from Michael Musgrove's Pen SVG Stroke Text Effect.
Forked from Michael Musgrove's Pen SVG Stroke Text Effect.
A Pen by Stephen Hawkes on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<title>Flatten.js, General SVG Flattener</title> | |
<head> | |
<script> | |
/* | |
Random path and shape generator, flattener test base: http://jsfiddle.net/xqq5w/embedded/result/ | |
Basic usage example: http://jsfiddle.net/Nv78L/3/embedded/result/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const X = [0.1, 0.5, 0.9, 1.3, 1.7]; | |
const Y = [-2.3026, -0.69315, -0.10536, 0.26236, 0.53063]; | |
const x = 0.8; | |
// const n = 3; | |
// var splines = new Array(X.length).fill({a:null,b:null,c:null,d:null,x:null}); | |
var splines = []; | |
for (let i =0; i < X.length; i++){ | |
splines.push({a:null,b:null,c:null,d:null,x:null}); |
OlderNewer