Skip to content

Instantly share code, notes, and snippets.

Danny Garcia dannygarcia

Block or report user

Report or block dannygarcia

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 sketch-rename-layers.js
var sketch = require('sketch')
var document = sketch.getSelectedDocument()
var page = document.selectedPage;
var vFrom = 'v11';
var vTo = 'v12';
var symbols = page.layers.filter(l => > -1));
dannygarcia /
Last active May 7, 2019
Convert Image Sequence to Animations
# This is not intended to be run as an executable shell script file.
# These are just the commands I use directly in the terminal after `cd`-ing to the image sequence directory.
# Images are named in this format: ####.png
# Convert sequence to animated GIF (imagemagick)
convert -delay 2.5 -loop 0 *.png anim.gif
# Convert sequence to video @ 24fps (ffmpeg)
ffmpeg -r 24 -f image2 -i %04d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p anim.mp4
dannygarcia / square.frag
Created Jun 28, 2017
Draws a square in a fragment shader (unoptimized implementation).
View square.frag
#ifdef GL_ES
precision mediump float;
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;
void main(){
vec2 st = gl_FragCoord.xy/u_resolution.xy;
dannygarcia / imagemap.html
Created Sep 16, 2016
Classic Site Image Map Preview
View imagemap.html
.box {
display: inline-block;
border: 2px solid #f2f2f2;
margin: 10px;
padding: 10px;
vertical-align: middle;
border-radius: 10px;
font-family: monospace;
color: #333;
View popup-video.js
View ac_retina.js
AC.Retina = AC.Class();
AC.Retina.prototype = {__defaultOptions: {attribute: "data-hires",recursive: true,queueSize: 8,publishNotifications: true},initialize: function ac_initialize(b) {
this._benchmarkTimer = new Date();
this._options = {};
this._globalBlacklist = null;
this._tagNameBlacklist = null;
this._images = [];
this._paused = false;
this._deferredQueue = null;
this.__queues = [];
View Default (OSX).sublime-keymap
{ "keys": ["ctrl+s"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+shift+j"], "command": "js_run" }
View _absolute.scss
@mixin absolute($top: false, $right: false, $bottom: false, $left: false) {
position: absolute;
@if $top != false {
top: $top;
@if $right != false {
right: $right;
@if $bottom != false {
bottom: $bottom;
dannygarcia / font.css
Created Apr 4, 2013
CSS to override default font styling in the LightGrid tumblr theme.
View font.css
#content, #content p, #content ul {
font-family: "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
View console.log.sublime-snippet
You can’t perform that action at this time.