Skip to content

Instantly share code, notes, and snippets.

View n7best's full-sized avatar
🎯
I may be slow to respond.

n7best n7best

🎯
I may be slow to respond.
View GitHub Profile
@n7best
n7best / genesis_public_key
Created February 8, 2018 00:06
genesis_public_key
046f99987f51d08fb6668103a7ccb58bc17e1dbb49e4731b844159b1d53aac2b9282692eadae4cd02d3349db64b344e6e2df52e64cbe95f44e3644372b13347ef8
@n7best
n7best / index.js
Created November 15, 2016 04:28
aws-zipper fix
var assert = require('assert');
var archiver = require('archiver');
var async = require('async');
var AWS = require('aws-sdk');
var fs = require('fs');
var EventEmitter = require('events').EventEmitter;
function S3Zipper(awsConfig, events) {
assert.ok(awsConfig, 'AWS S3 options must be defined.');
{
"Seti_blue_tab_label": true,
"Seti_no_bar_undertabs": true,
"Seti_sb_small_padding": true,
"Seti_sb_tree_small": true,
"Seti_tabs_small": true,
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 3,
"caret_extra_top": 3,
@n7best
n7best / spiritualAwakening-core.js
Last active May 17, 2016 01:36
theory of worlds and beyond
//道生一 Tao Create One 1D
let tao = () => ({
_tao: this,
state: [],
//1D properties, laws, limits
//....no idea
//anymethod can only reach to it's current property to create
//next level/dimension/creation
@n7best
n7best / .env
Created December 31, 2015 20:51
FineUploader Laravel Example with AWS SDK v3
AWS_CLIENT_SECRET_KEY=FILLIN
AWS_SERVER_PUBLIC_KEY=FILLIN
AWS_SERVER_PRIVATE_KEY=FILLIN
S3_BUCKET_NAME=FILLIN
S3_HOST_NAME=FILLIN
S3_MAX_FILE_SIZE=5242880 FILLIN
S3_BUCKET_REGION=us-east-1 FILLIN
S3_BUCKET_VERSION=2006-03-01 FILLIN
@n7best
n7best / S3-CORS-config.xml
Created December 31, 2015 01:56 — forked from zxbodya/S3-CORS-config.xml
Client side uploads to s3, with pre-signed upload form (PHP/JS)
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
@n7best
n7best / inc_id_rules.js
Created December 29, 2015 00:58 — forked from katowulf/inc_id_rules.js
Security rules for creating an incremental, numeric ID in Firebase
{
"rules": {
".read": true,
".write": false,
"incid": {
"counter": {
// this counter is set using a transaction and can only be incremented by 1
// the total number of records must be less than 10,000 simply for demo purposes
".write": "newData.isNumber() && ((!data.exists() && newData.val() === 1) || newData.val() === data.val()+1) && newData.val() <= 10000"
},
@n7best
n7best / css-js-Roulette.markdown
Created April 20, 2014 09:55
A Pen by n7best.

css/js Roulette

CSS animation, can someone figure why it's not working on safari?

A Pen by n7best on CodePen.

License.