View jsdom-load.js
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
/** | |
* If you are use to pre-version 10 jsdom, post 10 is an absolute nuisance for loading scripts...especially when you just | |
* want to test some code. | |
* This just creates a nice little wrapper to simplify everythign. | |
**/ | |
const __jsdom = require("jsdom"); | |
const { JSDOM } = __jsdom; | |
global.jsdom = function(html = '', scripts = []){ | |
return new Promise((resolve, reject)=>{ |
View mocha-async.js
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
/** | |
* If you do: | |
* describe('Test', ()=>{ | |
* it('what', async (done)=>{ | |
* try{ | |
* await SOME_ASYNC_FUNCTION | |
* done() | |
* }catch(e){ | |
* done(e) | |
* } |
View dev.conf
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
upstream tunnel { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
server_name dev.codeplane.com br.dev.codeplane.com; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; |
View riot+compiler+prevent+unmount.js
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
/* Riot WIP, @license MIT */ | |
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | |
typeof define === 'function' && define.amd ? define(factory) : | |
(global.riot = factory()); | |
}(this, (function () { 'use strict'; | |
var __VIRTUAL_DOM = []; | |
var __TAG_IMPL = {}; | |
var GLOBAL_MIXIN = '__global_mixin'; |
View riot+compiler+deferred+unmount.js
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
/* Riot WIP, @license MIT */ | |
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | |
typeof define === 'function' && define.amd ? define(factory) : | |
(global.riot = factory()); | |
}(this, (function () { 'use strict'; | |
var __VIRTUAL_DOM = []; | |
var __TAG_IMPL = {}; | |
var GLOBAL_MIXIN = '__global_mixin'; |
View trix.tag
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
<trix> | |
<input id={'trix-'+_riot_id} value={opts.content} type="hidden" /> | |
<trix-editor name="trix" class="trix-content" input={'trix-'+_riot_id} ></trix-editor> | |
<script> | |
/* | |
* <trix trix-change={changetext} content={content}></trix> | |
* You can bind to any of the trix events | |
*/ | |
this.on('mount', function(){ |
View rate.js
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
<rate> | |
<div class={"thumbs-wrapper " + (rating > 0 ? 'up' : rating < 0 ? 'down' : '')}> | |
<button class="down icon-thumbs-down"></button> | |
<button class="up icon-thumbs-up"></button> | |
</div> | |
<style scoped> | |
button{ | |
min-width: auto; | |
min-height: auto; |
View Water Sensors.ino
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
/* | |
Allebrum, LLC (www.allebrum.com) | |
Senica Gonzalez - senica@gmail.com | |
Manual for packet assembly and options can be found here: | |
ftp1.digi.com/support/documentation/90000976_M.pdf | |
ultrasonic module ping distance sensor | |
VCC to arduino 5v GND to arduino GND | |
Echo to Arduino pin 3; Trig to Arduino pin 4 |
View uglyccc.css
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
@charset "utf-8";*,html{-webkit-tap-highlight-color:transparent}.tp-bullets.preview4 .bullet,hr{-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.caret:before,.glyphicon{-moz-osx-font-smoothing:grayscale}.glyphicon,.mistbtn-circle,.mistbtn-rounded,sub,sup{position:relative}.input-group-addon:last-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.navbar-fixed-bottom .na |
View uglyccc.ie8.css
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
@charset "utf-8";.fixed-header,.page-box{padding-top:0!important}.carousel-box .prev,.header .cart-header .dropdown-menu .product-remove,.header .cart-header .dropdown-toggle .icon,.jslider .jslider-pointer{background-repeat:no-repeat;background-position:50% 50%}.fixed-header{margin-top:0!important}.fixed-header .header,.fixed-header.hidden-top.visible-top .header{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;margin-top:inherit;position:static;top:inherit;-webkit-backface-visibility:inherit;-webkit-transform:inherit}.fixed-header.hidden-top{-webkit-transition:all 0 linear;transition:all 0 linear}.fixed-header.hidden-top #top-box{margin-top:0;position:static}.fixed-header.hidden-top .header{margin-top:0;position:inherit}.fixed-header.fixed .header,.fixed-header.hidden-top.visible-top .header{border-bottom:1px solid #e1e1e1}.gallery-images:hover>.bg-images{filter:alpha(opacity=70)}.work:hover .bg-hover{filter:alpha(opacity=90)}.carousel-box .prev{background-image:url(../../img/png-icons/arrow-lef |
NewerOlder