Skip to content

Instantly share code, notes, and snippets.

@dduleone
dduleone / .vimrc
Created February 3, 2019 17:26
curl. json & vim
" ~/.vimrc
syntax on
au BufRead,BufNewFile *.json set filetype=json
colorscheme darkblue
@dduleone
dduleone / helping_mike.js
Last active January 30, 2019 16:14
Helping Mike
import React, { Component } from 'react'
import ListContacts from './ListContacts'
class App extends Component {
state = {
contacts: [
{ id: 'Mike',
name: 'CampyandtheGoodVibes',
handle: '@CampyandtheGoodVibes'
@dduleone
dduleone / sample.js
Last active January 11, 2019 19:58
Thoughts on Async APIs
/* Async Dependency */
const doIt = () => {
console.log('resolved');
};
/* Wrapper to Support Blocking */
const doItAndThenLater = (andThenDoThis) => {
const callback = (typeof andThenDoThis === "function") ? andThenDoThis : (result) => {return result};
@dduleone
dduleone / UIE Handlers Prototype.js
Created August 19, 2018 17:47
UIE Handlers Prototype.js
const createUIEHandler = (type, onFunction, handleFunction) => {
return {
type,
onFunction: (payload) => {
return {
type,
payload: onFunction(payload)
};
},
handleFunction
@dduleone
dduleone / Component Folder Structure
Last active August 14, 2018 19:00
RDK README.md Examples
/**
Located in src/components/MyComponent/
*/
index.js
MyComponent.js
MyComponent.css
MyComponentContainer.js
MyComponentReducer.js

Keybase proof

I hereby claim:

  • I am dduleone on github.
  • I am dduleone (https://keybase.io/dduleone) on keybase.
  • I have a public key ASC8OP0V1tU60tRjvDvJpCCKqfLQfuGbcQW0ybFDyKQjgQo

To claim this, I am signing this object:

@dduleone
dduleone / resttest.php
Created May 26, 2016 16:32
Display PHP Request Data
<?php
header('content-type: application/json');
session_start();
$data = array(
// 'GLOBALS' => $GLOBALS,
'_SERVER' => $_SERVER,
'_GET' => $_GET,
'_POST' => $_POST,
'_FILES' => $_FILES,
@dduleone
dduleone / BeginnerSkills.md
Last active April 15, 2016 15:15
Duolino Dutch Vocabulary

Basics 1

  • man
  • vrouw
  • ik
  • ben
  • een
  • jongen
  • en
  • is
  • ze
@dduleone
dduleone / example.txt
Last active August 29, 2015 14:14
Versioning Dilemma
Time = Now
DEV: v2.0.24.1
QA: v2.0.24.1
STAGE: v2.0.24RC
PROD: v2.0.23
WHen I push the story I'm working on to dev:
DEV: v2.0.25.1
@dduleone
dduleone / output.txt
Created December 4, 2014 18:38
PubSub Test
beforeEventEvent::firealt<br />
beforeEventEvent::fire<br />
...Event...<br />
afterEventEvent::fire<br />
Round 1:<br />
Array<br />
(<br />
[beforeEvent] => Array<br />
(<br />
[beforeEventEvent::firealt] => firealt<br />