Skip to content

Instantly share code, notes, and snippets.

@lilac
lilac / Sticky Footer.html
Last active October 4, 2015 21:28
Sample HTML page with Twitter's Bootstrap, Ryan Fait's Sticky Footer, and a full-width footer
@lilac
lilac / ckedit.py
Last active August 29, 2015 14:11 — forked from dengshuan/ckedit.py
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext import admin
from wtforms import TextAreaField
from wtforms.widgets import TextArea
from flask.ext.admin.contrib.sqla import ModelView
app = Flask(__name__)
app.config['SECRET_KEY'] = '123456790'

CSS3 Flat Circle/Round Icon Animation

Use any image with this. The image does not have to be round and can be any size but it should have an aspect ratio of 1:1.

Just a variation of my other pen: Water Drop Circle Effect as CSS3 Animation

A Pen by Jascha Goltermann on CodePen.

License.

@lilac
lilac / index.html
Last active August 29, 2015 14:21 — forked from anonymous/index.html
Ember render with promise
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ember Starter Kit</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script>
<script src="http://builds.emberjs.com/tags/v1.8.0/ember.js"></script>
<style id="jsbin-css">
@lilac
lilac / 0_reuse_code.js
Last active September 8, 2017 12:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
let f = (a, b) => { return a+b; }
@lilac
lilac / makeTemplate.js
Created March 29, 2018 12:11 — forked from malko/makeTemplate.js
dynamic es6 template string to template methods
//const tpl = makeTemplate('hello ${name}')
//const name = 'world';
//tpl({name});
const makeTemplate = (templateString) => {
return (templateData) => new Function(`{${Object.keys(templateData).join(',')}}`, 'return `' + templateString + '`')(templateData);
}