This is a demo of dynamic directional transitions using React's CSSTransitionGroup.
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 json | |
import sys | |
import argparse | |
import re | |
import pprint | |
parser = argparse.ArgumentParser() |
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() { | |
'use strict'; | |
function F2(fun) | |
{ | |
function wrapper(a) { return function(b) { return fun(a,b); }; } | |
wrapper.arity = 2; | |
wrapper.func = fun; | |
return wrapper; |
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
viewCounter address ( id, model ) = | |
let context = | |
Counter.Context | |
(Signal.forwardTo address (Modify id)) | |
(Signal.forwardTo address (always (Remove id))) | |
in | |
Counter.viewWithRemoveButton context model | |
{- | |
==== error in Bad.elm:4:8: ==== |
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
<html xmlns:o="urn:schemas-microsoft-com:office:office" | |
xmlns:w="urn:schemas-microsoft-com:office:word" | |
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" | |
xmlns="http://www.w3.org/TR/REC-html40"> | |
<head> | |
<meta http-equiv=Content-Type content="text/html; charset=utf-8"> | |
<meta name=ProgId content=Word.Document> | |
<meta name=Generator content="Microsoft Word 15"> | |
<meta name=Originator content="Microsoft Word 15"> |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
dir = File.dirname(__FILE__) | |
Vagrant.configure("2") do |config| | |
config.vm.box = "test" | |
config.vm.box_version = "1" | |
config.vm.box_url = "file://" + dir + "/packer/metadata.json" | |
end |
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
Tested with LiveReload 2.3.18 | |
The only requirement is that the updating requests are sent with ?livereload={etc} in the url. | |
LiveReload should be configured to NOT compile the assets, as we want webassets to take care of this. We're | |
just using LR for the notification/loading parts. |
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
import re | |
from os import path, stat | |
from webassets import Bundle | |
from webassets.exceptions import BundleError | |
DEPENDS_REGEXES = map(re.compile, [ | |
# http://stackoverflow.com/questions/4652777/java-regex-to-get-the-urls-from-css | |
# With addon to handle quotes | |
r'url[\s]*\([\s\'\"]*(?P<url>[^\)\'\"]*)[\s\'\"]*\)[\s]*', |
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
/** | |
* New Item Link | |
*/ | |
.new_item { | |
border: 1px dotted #000; | |
padding: 0.5em; | |
border-radius: 0.25em; | |
opacity: 0.5; | |
} |
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
class Mock(object): | |
def __init__(self): | |
history = [] | |
unmet_expectations = [] | |
def __call__(self, func, *args, **kwargs): | |
""" | |
Here we can grab a copy of the actual function/state and insert | |
the Mock object as __salt__ so the usual calls to |
NewerOlder