Skip to content

Instantly share code, notes, and snippets.

@clouddueling
clouddueling / Snapshot Poem
Created January 8, 2014 04:50
Someone on the internet I met wrote this but I never got their name. Love it regardless.
In honor of this terrible cold weather:
Crystallized trees and stone cold air.
The smell of oak burning and the stillness of a stare.
The treesa re
the trees are tall*
@clouddueling
clouddueling / console.log
Created January 4, 2014 05:59
My only take away from Paul Irish's talk on workflow. Run this in your Chrome console. :)
console.log('%c I AM UNICORN!!!', 'color: #fff; font-size: 30px; font-family: Verdana; text-shadow: 0px 2px 3px #555; padding: 20px 400px; width: 100%; background: #F66 url(rainbow-gradient.jpg); background-image: -moz-linear-gradient( left top, right bottom , from(red), color-stop(16%, orange), color-stop(32%, yellow), color-stop(48%, green), color-stop(60%, blue), color-stop(76%, indigo), to(violet)); /*webkit rainbow gradient*/ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.00, red), color-stop(16%, orange), color-stop(32%, yellow), color-stop(48%, green), color-stop(60%, blue), color-stop(76%, indigo), color-stop(1.00, violet));}');
@clouddueling
clouddueling / webpage.less
Created December 29, 2013 03:20
A really nice nav bar altered a bit from bootstrap's example
//
// NOTE 〉Justifed Nav
// --------------------------------------------------
.nav-justified {
background-color: #eee;
display: table;
margin: 0;
width: 100%;
float: left;
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://npmjs.org/install.sh | sh
<ul class='unstyled-list'>
<li
class="ui-state-highlight"
my-draggable="#sortable">Drag Me Down</li>
</ul>
<ul my-sortable id="sortable">
<li
class="ui-state-default"
ng-repeat="item in items">{{ item.name }}</li>
@clouddueling
clouddueling / commonDrag.html
Last active December 31, 2015 11:49
angular common directives
<div
style='height: 100px; width: 100px; background: red; cursor: pointer;'
drag
drag-top='object.top'
drag-left='object.left'></div>
@clouddueling
clouddueling / Gruntfile.js
Created December 12, 2013 01:51
my first grunt file.js
//Gruntfile
module.exports = function(grunt) {
//Initializing the configuration object
grunt.initConfig({
// Task configuration
concat: {
options: {
separator: ";\n"
@clouddueling
clouddueling / ctrl.php
Last active December 30, 2015 17:09
long polling in php
Polling::forResult(function($options) {
if ($options['key'] == 'value') {
// end polling
return true;
} else {
// continue polling
return false;
}
}, ['key' => 'value']);
@clouddueling
clouddueling / app.html
Created December 6, 2013 05:37
product view
<hr>
<script>
var serie = {{ json_encode(to_json($serie)) }},
meets = {{ json_encode(to_json($meets)) }};
</script>
@include("product.page.premium.app")
@clouddueling
clouddueling / footer.php
Created December 6, 2013 05:36
layout v2 footer.php