$ cat app/index.html | pbcopy-
Go to http://html2jade.com/ and paste clipboard contents
-
Or try http://html2jade.aaron-powell.com/ instead if offline
-
Convert to jade and copy result
| /* | |
| * http://www.myersdaily.org/joseph/javascript/md5-text.html | |
| */ | |
| (function() { | |
| var md5cycle = function(x, k) { | |
| var a = x[0], b = x[1], c = x[2], d = x[3]; | |
| a = ff(a, b, c, d, k[0], 7, -680876936); |
| #!/bin/bash | |
| # | |
| # transcode-video.sh | |
| # | |
| # Copyright (c) 2013-2015 Don Melton | |
| # | |
| about() { | |
| cat <<EOF | |
| $program 5.13 of April 8, 2015 |
| // NOT WORKING AS AT 14-JAN-14 DUE TO API CHANGES | |
| // | |
| // written for the Go London User Group meeting of 21st November 2013 by Elliott Stoneham | |
| // uses code.google.com/p/go.tools/ssa/interp which warns “It is not, and will never be, a production-quality Go interpreter.” | |
| // main() code adapted from the example given in code.google.com/p/go.tools/ssa | |
| // requires go version 1.2 | |
| // | |
| package main | |
| import ( |
$ cat app/index.html | pbcopyGo to http://html2jade.com/ and paste clipboard contents
Or try http://html2jade.aaron-powell.com/ instead if offline
Convert to jade and copy result
| <manifest ...> | |
| ... | |
| <!-- Make sure your app (or individual activity) uses the | |
| theme with the custom attribute defined. --> | |
| <application android:theme="@style/AppTheme" ...> | |
| ... | |
| </application> | |
| </manifest> |
| directives.directive('twitter', [ | |
| function() { | |
| return { | |
| link: function(scope, element, attr) { | |
| setTimeout(function() { | |
| twttr.widgets.createShareButton( | |
| attr.url, | |
| element[0], | |
| function(el) {}, { | |
| count: 'none', |
| #!/usr/bin/env python | |
| """strip outputs from an IPython Notebook | |
| Opens a notebook, strips its output, and writes the outputless version to the original file. | |
| Useful mainly as a git filter or pre-commit hook for users who don't want to track output in VCS. | |
| This does mostly the same thing as the `Clear All Output` command in the notebook UI. | |
| LICENSE: Public Domain |
| /* | |
| * Copyright (c) 2011-2013 NVIDIA Corporation. All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions are met: | |
| * | |
| * Redistributions of source code must retain the above copyright notice, | |
| * this list of conditions and the following disclaimer. | |
| * | |
| * Redistributions in binary form must reproduce the above copyright notice, |
| /* | |
| You'll need something like this in your HTML: | |
| <script src="http://d3js.org/topojson.v1.min.js"></script> | |
| */ | |
| L.TopoJSON = L.GeoJSON.extend({ | |
| addData: function(jsonData) { | |
| if (jsonData.type === "Topology") { | |
| for (key in jsonData.objects) { | |
| geojson = topojson.feature(jsonData, jsonData.objects[key]); |
| """ | |
| Buildbot BuildStep that runs and parses the output of testcode2. | |
| Copyright (c) 2013 Shawn Chin | |
| This sofware is released under the BSD 3-Clause License | |
| """ | |
| import re | |
| from itertools import chain | |
| from collections import defaultdict | |
| from buildbot.steps.shell import ShellCommand |