Skip to content

Instantly share code, notes, and snippets.

View kevingorski's full-sized avatar

Kevin Gorski kevingorski

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1GMrfy2kkfM3LtxuaRsdNp9N73rEhmdBR4 https://explorer.blockstack.org/address/1GMrfy2kkfM3LtxuaRsdNp9N73rEhmdBR4
@kevingorski
kevingorski / index.html
Created July 9, 2013 16:43
Trying to show delegated click events not working on group elements in IE.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>SVG Group Element Click Events</title>
<style>
.DirectClickEvent { fill: green; }
.GroupClickEvent { fill: red; }
text { fill: white; }
@kevingorski
kevingorski / fileUploading.js
Last active December 10, 2015 09:39
jQuery promises and deferred object example
// Imaginary file upload API
var file = {
totalBytes: 300,
upload: function(fileName) {
var uploading = $.Deferred(),
bytesTransferred = 0;
transferringInterval = setInterval(function() {
bytesTransferred += 50;
uploading.notify(bytesTransferred);
<!-- This code would normally be compressed to one line and not include comments -->
<a id="Target" href="javascript:
// Begin self-executing function
(function(){
// Check for existing definitions
if(typeof CYRIN == 'undefined'
||typeof CYRIN.Bookmarklet == 'undefined'){
// Include updatable script
@kevingorski
kevingorski / dabblet.css
Created April 20, 2012 21:08
Popover for Neven
/**
* Popover for Neven
*/
body {
background-color: #BBB;
}
.container {
width: 250px;
}
@kevingorski
kevingorski / Alfred-test.js
Created February 11, 2011 21:56
Trying out Alfred.js, running into issues
var alfred = require('alfred');
alfred.open(__dirname + '/sessions.db', function(err, db) {
if (err) { throw err; }
console.log(err); // 'null'
console.log(db);
/*
{ options:
{ meta_compact_interval: 3600000,