Skip to content

Instantly share code, notes, and snippets.

.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;
<?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');
@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;
--
@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 |
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 / 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();
@kenjox
kenjox / nativeJavaScript.js
Created January 25, 2018 20:36 — forked from alexhawkins/nativeJavaScript.js
Implementation of Native JavaScript Methods (forEach, Map, Filter, Reduce, Every, Some)
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++)
callback(this[i], i, this);
};
//tests
@kenjox
kenjox / README.md
Created February 2, 2018 07:52 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@kenjox
kenjox / index.html
Created May 18, 2018 00:12 — forked from tpluscode/index.html
Importing and stamping templates with ES6 and lit-html
<!DOCTYPE html>
<html lang="en">
<body>
<vanilla-lit tagline="Luke"></vanilla-lit>
<script src="bundle.js"></script>
</body>
</html>
@kenjox
kenjox / client.js
Created June 29, 2018 10:20 — forked from crtr0/client.js
A simple example of setting-up dynamic "rooms" for socket.io clients to join
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = "abc123";
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
});