Skip to content

Instantly share code, notes, and snippets.

@reynish
reynish / twbs.responsivepull.css
Last active August 29, 2015 13:56
Pure css responsive version of twitter bootstrap pull right & pull left with a reset option.
/* With default bootstrap breakpoint sizes */
.pull-left-xs {
float: left;
}
.pull-right-xs {
float: right;
}
.pull-reset-xs {
@reynish
reynish / twbs.responsivepull.less
Created February 18, 2014 13:19
LESS: twitter bootstrap responsive pull right & pull left with a reset option
.pull-left,
.pull-left-xs { float: left; }
.pull-right,
.pull-right-xs { float: right; }
.pull-reset,
.pull-reset-xs { float: none; }
@media (min-width: @screen-sm-min) {

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.

@reynish
reynish / README.md
Last active August 29, 2015 14:06 — forked from mbostock/.block

This is not a true Dorling cartogram; it lacks links between adjacent features. Instead of trying to preserve connectedness, this pseudo-cartogram tries to preserve locality, putting each circle as close as possible to its origin without overlapping.

@reynish
reynish / README.md
Last active August 29, 2015 14:08 — forked from mbostock/.block

This example uses a custom tween that interpolates the window’s vertical scroll offset.

@reynish
reynish / webkit-input-date
Created July 7, 2015 12:28
Remove webkit date input spinners
input[type=date]::-webkit-inner-spin-button,
input[type=date]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
@reynish
reynish / simple-server.js
Created January 8, 2016 10:13
Really simple node server
var http = require('http');
var port = 9000;
function handleRequest(req, res){
res.end('I\'m alive');
}
var server = http.createServer(handleRequest);
@reynish
reynish / gist:74eaafcbb6755c02c9ff
Created March 4, 2016 14:28 — forked from justinmc/gist:9149719
Sample Gulpfile
var gulp = require('gulp');
var clean = require('gulp-clean');
var jshint = require('gulp-jshint');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var bases = {
app: 'app/',
@reynish
reynish / index.html
Last active August 19, 2016 11:31
Three.js playgroundhttps://bl.ocks.org/reynish/bb06fb67c247b0a32d67769c0c295d75
<html>
<head></head>
<body>
<script src="https://rawgit.com/mrdoob/three.js/dev/build/three.js"></script>
<script src="script.js"></script>
</body>
</html>
// Have a service to show temperature and battery level
// This is only visible when you are connecting to the Puck
var currentTemperature=E.getTemperature().toFixed(2)*100;
console.log("Temp: "+currentTemperature);
NRF.setServices({
"12411007-877b-4b6e-1d8a036a956a" : { // Health Thermometer
"7e3defd9-1426-068f-d744-fa70603d83ac": { // Temperature