Skip to content

Instantly share code, notes, and snippets.

View spacesailor24's full-sized avatar
๐Ÿš€
68747470733a2f2f796f7574752e62652f65356e79516d6171346b343f743d3532

Wyatt Barnes spacesailor24

๐Ÿš€
68747470733a2f2f796f7574752e62652f65356e79516d6171346b343f743d3532
View GitHub Profile

Keybase proof

I hereby claim:

  • I am spacesailor24 on github.
  • I am spacesailor (https://keybase.io/spacesailor) on keybase.
  • I have a public key ASAW3CLUkLHyobdAGm5ryk9-_azVIsa8pDltcNN6blhq1Qo

To claim this, I am signing this object:

@spacesailor24
spacesailor24 / nonBlockingAsyncAwait.js
Created September 25, 2019 19:57
Non Blocking Async Await Example
const getValuesFromAPI = async () => {
const firstValue = getValueFromAPI('firstValue');
const secondValue = getValueFromAPI('secondValue');
const firstAndSecondValues = Promise.all([firstValue, secondValue]);
return firstAndSecondValue
}
@spacesailor24
spacesailor24 / RBAC.sol
Created May 21, 2019 07:41
Role Bases Access Control
pragma solidity ^0.5.0;
/**
* @title RBAC
* @author Alberto Cuesta Canada
* @notice Implements runtime configurable Role Based Access Control.
*/
contract RBAC {
event RoleCreated(uint256 role);
did:muport:QmcBgvaUPxKkvrZQzjpNs4EyGzDPsKReQmZszZwjzEZmBv
@spacesailor24
spacesailor24 / 3box-verification.txt
Last active January 24, 2019 06:30
3Box Verification
did:muport:QmTz9s64riHwtLFadAs8FW3a8NTNA8tqcD2UatCUGXMVRn

Keybase proof

I hereby claim:

  • I am spacesailor24 on github.
  • I am spacesailor24 (https://keybase.io/spacesailor24) on keybase.
  • I have a public key ASDiRiBKSYa1VuFOIAQ-3yWF2xzssc8StY10DFyKKE3j_Ao

To claim this, I am signing this object:

@spacesailor24
spacesailor24 / flippilotVueExample.js
Last active November 27, 2017 15:28
FlipPilot Vue Example
// Your goal is to recreate a functional version of what you see in the image:
// https://www.dropbox.com/s/nrkkuxliq8akff4/flipPilotExample.png?dl=0
// using the mock data provided below.
// Vue Documentation: https://vuejs.org/v2/guide/
// Vuex Documentation: https://vuex.vuejs.org/en/
// Mock Data:
state: {
account: {
@spacesailor24
spacesailor24 / phpUnitTest.php
Last active October 11, 2017 16:44
Common PHP Unit Test
######################## Example 1 ############################
class ControllerTest extends TestCase
{
use DatabaseTransactions;
....
###############################################################
######################## Example 2 ############################
public function testSomethingYoureTesting()
{
@spacesailor24
spacesailor24 / FS-PY-Security-Class.py
Created April 27, 2017 22:30
Filestack Python Security Class
import json
import base64
import hmac
import hashlib
# This would be a constant sourced from a config.py file
ACCEPTED_SECURTIY_PARAMS = ('expiry', 'call', 'handle', 'url',
'maxSize', 'minSize', 'path', 'container')
ACCEPTED_SECURTIY_TYPES = {'expiry': int, 'call': list,