A Pen by Bike Monkey on CodePen.
This file contains hidden or 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
#!/bin/bash | |
DATETIME=$(date +%Y%m%d) | |
echo "MOVE ALL CSV FILES INTO A SINGLE FILE." | |
echo "join [outputfile]" | |
mkdir output | |
mkdir ./output/$1_$DATETIME | |
cat *.csv >./output/$1_$DATETIME.csv | |
mv *.csv ./output/$1_$DATETIME | |
open ./output |
This file contains hidden or 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
// timeshift.js | |
// node timeshift --file='newEvent.rhesus' --shift=+3000 --last | |
// node timeshift --file='lgf.starts.json' --shift=+690000 | |
console.log('\nTIMESHIFT.JS'); | |
console.log('> Automatically works with simple times or entire rhesus files.\n'); | |
let argv = require('yargs').argv; | |
if (!argv.file) { |
This file contains hidden or 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 MorseNode(ac, rate) { | |
// ac is an audio context. | |
this._oscillator = ac.createOscillator(); | |
this._gain = ac.createGain(); | |
this._gain.gain.value = 0; | |
this._oscillator.frequency.value = 750; | |
this._oscillator.connect(this._gain); |
This file contains hidden or 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
<style> | |
.parallaxVideo{ | |
opacity:0; | |
z-index:10; | |
min-width: 100%; | |
min-height: 100%; | |
/* Setting width & height to auto prevents the browser from stretching or squishing the video */ | |
width: auto !important; | |
height: auto !important; |
This file contains hidden or 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
//////////////////////// | |
/// PRIVILEGED ROUTES // | |
//////////////////////// | |
/// | |
/// | |
/// | |
module.exports = function(app,stormpath){ | |
app.get('/dashboard', stormpath.loginRequired, function(req, res){ | |
res.locals.stripeKey = process.env.STRIPE_PUBLISHABLE_KEY; | |
res.locals.user = req.user; |
This file contains hidden or 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
'use strict'; | |
/////////////////// | |
// app.rhesus.io // | |
/////////////////// | |
/// | |
/// | |
/// | |
require('./config.js'); | |
///////////////// |
This file contains hidden or 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
<!-- EMBED INTO EACH FORM YOU ARE USING THIS FUNCTIONALITY WITH --> | |
<!-- MAKE SURE TO DISABLE THE FORM'S JQUERY FEATURE WHEN YOU GET THE EMBED CODE --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-beta1/jquery.min.js"></script> | |
<!-- ADD THE FOLLOWING JAVASCRIPT TO YOUR FORM'S EMBEDED CUSTOMIZATION --> | |
<script> | |
// FORMSTACK RADIO BUTTON AND SELECT BOX BEAUTIFICATION | |
// WORKS IN CONJUNCTION WITH THE CSS BELOW | |
// https://gist.github.com/clayperez/54547413ec23dff54fa6 | |
jQuery(document).ready(function($){ |
A demonstration of faster DOM construction with docfrags. I decided to make it colorful.
A Pen by Carlos Perez on CodePen.
This file contains hidden or 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
/////////////////////////////////////// | |
// RFID PRINTER COMMAND LINE UTILITY // | |
/////////////////////////////////////// | |
// REQUIRES: node-printer by tojocky | |
// USAGE: node zebra.js <printer> <start> <end> <file.csv> <print/null> | |
// | |
// RANGE EXAMPLE prints range to screen only: | |
// C:> node zebra zebra 1 100 | |
// | |
// RANGE EXAMPLE prints range: |
NewerOlder