Skip to content

Instantly share code, notes, and snippets.

View ds0nt's full-sized avatar
🏠
Working from home

Daniel Sont ds0nt

🏠
Working from home
View GitHub Profile
{
"NODE_ENV": "development",
"PORT": "3000",
"MONGODB": "localhost",
"DATADIR": "./data",
"WWWROOT": "../dist",
"JWT_KEY": "obfuscation-by-parlation",
"STRIPE_SK": "wtfjoke",
}
{
"NODE_ENV": "development",
"PORT": "3000",
"MONGODB": "localhost",
"DATADIR": "./data",
"WWWROOT": "../dist",
"JWT_KEY": "obfuscation-by-parlation",
"STRIPE_SK": "wtfjoke",
}
<script src="https://gist.github.com/4761d70e603d67b82a8b.js"></script>
<script src="https://gist.github.com/9ffbcb409f56728a3e2d.js"></script>
#!/bin/bash
error() {
echo -e "\e[00m\e[31m" $@ "\e[00m"
}
out() {
echo -e "\e[00m\e[32m" $@ "\e[00m"
}
#!/bin/bash
for x in $@; do
html=`cat $x`
echo html | grep '\<([A-Z]\S*).*\>'
target="$(dirname $x)/$(basename -s .html $x).js"
(echo "import { element } from 'deku'"; echo 'export default {'; echo -e " render: ({props}) => $html"; echo '}')> $target
done
#!/bin/bash
NAME=$(zenity --entry --text="Gist package name:")
EMBED=$(gist --filename $NAME --paste --embed --copy) || exit
cd /code/scratch/gist/
echo "<div><h4>$NAME</h4>$EMBED</div>" >> index.html;
http-server -p 9090 -o -c
Runnable lets you create Sandboxes (collections of one or more servers) to run the code in your GitHub repositories, on‑demand.
We integrate with the tools you’re already using, like GitHub and Slack, to automatically deploy commits and launch containers in your Sandbox when you create branches and notify you when they are updated via Slack. It’s easy to share Sandboxes in a team as you develop and test your application—and you can continue to use your existing tools and processes for deployment without having to change the way you work.
<!-- https://github.com/grancalavera/130921 -->
<header>
<h1>Third Cube</h1>
<p>Another <a href="https://twitter.com/davidope">@davidope</a> cover, this one using <a href="http://threejs.org/">three.js</a>. I have not been able to get it to work identically yet.</p>
<p>Based on <a href="http://dvdp.tumblr.com/post/61799632866/130921">130921</a>.</p>
</header>
<div id="main-container" class="container"></div>