Skip to content

Instantly share code, notes, and snippets.

@kenjox
kenjox / giphy
Last active September 13, 2017 10:36
var Gallery = (function($, document){
var offset = 0;
var limit = 25;
var ratings = ['Y', 'G', 'PG', 'PG-13', 'R'];
var $galleyContainer = document.querySelector('#my-gallery');
function init() {
displayGallery();
import RPi.GPIO as GPIO
import mosquitto, json, time
# -------------- #
# Board settings #
# -------------- #
GPIO.setmode(GPIO.BOARD) # use P1 header pin numbering convention
GPIO.cleanup() # clean up resources
@kenjox
kenjox / brainwave
Last active August 29, 2015 14:22
interviewee table
+----+---------------------+----+-------+
| id | dateTime | value |
+----+---------------------+----+-------+
| 1 | 2015-30-21 12:30:20 | 30 |
| 2 | 2015-30-21 12:30:21 | 30 |
| 3 | 2015-30-21 12:30:22 | 50 |
| 4 | 2015-30-21 12:30:23 | 50 |
| 5 | 2015-30-21 12:30:24 | 50 |
| 6 | 2015-30-21 12:30:26 | 50 |
@kenjox
kenjox / DB.sql
Last active August 29, 2015 14:06 — forked from msurguy/DB.sql
CREATE TABLE `makers` (
`id` int(10) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated with https://github.com/barryvdh/laravel-ide-helper
* Updated for Laravel 4.1.20 (2014-02-03)
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
exit('Only to be used as an helper for your IDE');
.modal-backdrop {
background: #000;
background: rgba(0,0,0,0.9);
background: -webkit-radial-gradient(50% 50%, ellipse closest-corner, rgba(0,0,0,0.45) 1%, rgba(0,0,0,0.8) 100%);
background: -moz-radial-gradient(50% 50%, ellipse closest-corner, rgba(0,0,0,0.45) 1%, rgba(0,0,0,0.8) 100%);
background: -ms-radial-gradient(50% 50%, ellipse closest-corner, rgba(0,0,0,0.45) 1%, rgba(0,0,0,0.8) 100%);
background: radial-gradient(50% 50%, ellipse closest-corner, rgba(0,0,0,0.45) 1%, rgba(0,0,0,0.8) 100%);
filter: alpha(opacity = 80);
opacity: 0;