Skip to content

Instantly share code, notes, and snippets.

View beardedtim's full-sized avatar
💭
I may be slow to respond.

Tim Roberts beardedtim

💭
I may be slow to respond.
View GitHub Profile

Example Usage

<div t-redux-scroller get-next="$ctrl.getNext" done="$ctrl.done" trigger-selector=".trigger-class">
   <div ng-repeat="data in $ctrl.data">
    <template data="data"></template>
   </div>
  <div class="trigger-class"></div>
</div>
@beardedtim
beardedtim / README.md
Created May 4, 2018 22:34
HTTP Basics

Basics of HTTP Requests

There are 4 verbs that we will care about for now:

  • GET
    • For when we want to get information from the server ( read a resource )
    • Cannot have a body
    • Example fetch request: *
@beardedtim
beardedtim / readme.md
Created May 3, 2018 15:59
Breakdown of task

The current PR can be broken up into 4-6 different PRs, with varying degree of independence:

  • Scroll

    • Ensure that when needed, functions are called internally
    • Given a specific API, should work in isolation
  • Reducers

    • Notification Duck logic
    • Given a specific API, should work in isolation
@beardedtim
beardedtim / README.md
Last active April 29, 2018 14:50
Creating a New Project

Creating a New Project

Step 1: Create Folder

cd <parent-directory>
// example:
//
//  If I want my project to be inside of `C:/Projects`
//  I would run `cd Projects`
@beardedtim
beardedtim / README.md
Last active April 27, 2018 19:30
Learning Haskell

Learning Haskell The Hard Way

Install Haskell Stack

If you are using a Windows machine, you can use choco to install:

  • choco install haskell-stack

Or you can look at this site for more instructions.

Setting Up a Project

@beardedtim
beardedtim / readme.md
Last active April 2, 2018 18:58
List Building Architecture

List Building Architecture Outline

Add/Edit Modal

Needs

  • Current Subject/Object
  • Current Path to Subject/Object

Uses

  • Current Path to Subject/Object
@beardedtim
beardedtim / component.ts
Created March 29, 2018 18:54
AngularJS Redux Example
import { Component, Inject, Input } from 'core/decorators';
import { actions, Notification } from 'core/store/ducks/notifications';
import { ReduxProvider } from 'core/store/utilities/provider';
import './notification.item.scss';
@Component({
selector: 'notificationItem',
template: require('./notification.item.html')
})
@beardedtim
beardedtim / goal.js
Created March 21, 2018 18:57
Graph goal output
/*
Contact has Contact Information that
has Contact Type equal to Person
and
Contact has Relationship to {Licensee} that
has Type equal to Customer or Prospect
is with Org Item that
has Field equal to Commercial
has Net Worth greater than $2
// Input
const data = [
{
calcFieldValue: 3,
id: '50346a2e-8421-e811-a2bc-000c29878c3f',
idFieldValue: null,
primaryCurrencyCalcFieldValue: 4,
productFolder: 'Personal',
productTypeName: 'DDAs',
fields: [],
@beardedtim
beardedtim / docker-destroy-all.sh
Created March 9, 2018 19:47 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)