Skip to content

Instantly share code, notes, and snippets.

Avatar

John Hamman otherjohn

  • Williamsburg, Va
View GitHub Profile
@otherjohn
otherjohn / index.html
Created Jul 17, 2018
RiotJS Bean Calculator
View index.html
<hello-world />
<script type="riot/tag">
<hello-world>
<div class="row">
<div class="medium-7 columns">
<form
oninput={ loanCalc }
onchange={ loanCalc }
>
@otherjohn
otherjohn / App.jsx
Created Jul 16, 2016
Cant find the cause of "type.toUpperCase is not a function"
View App.jsx
var React = require('react');
import WtmAuthor from './components/WtmAuthor.jsx';
React.render(
<WtmAuthor />,
document.getElementById('wtm-author')
);
View index.html
<body>
<app>
<h1>Some Heading</h1>
<p>some content</p>
<someDirective></someDirective>
<someOtherDirective>
<p>default content</p>
</sommeOtherDirective>
</app>
</body>
@otherjohn
otherjohn / gist:af51e0746f351b8baf7001d4b3ec2e21
Last active Apr 13, 2016 — forked from kaumac/gist:de6f5126c04d5c210dd2
Firebase companies and employees data structure
View gist:af51e0746f351b8baf7001d4b3ec2e21
{
companies: {
cmp0001: {
name: "Happy company"
employees: {
u0001: "admin",
u0002: "manager"
}
},
cmp0002: {
View SLIDE-DOWN.md

This gist shows you how to do a slide-down menu in Titanium.

Features:

  • Toggle using a menu button in the ever-visible navigation bar on the top of the screen
  • Menu options animating down from under the navigation bar
  • Hide by swiping the menu options up
  • Hide by tapping the area below the menu options (being the view covered by the slide-down menu

Images:

View .gitignore
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20140606
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@otherjohn
otherjohn / cas.yml
Last active Dec 25, 2015
sample CASinoApp yml files
View cas.yml
production:
frontend:
sso_name: 'CASino'
footer_text: 'Powered by <a href="http://rbcas.com/">CASino</a>'
authenticators:
my_funny_sql_database:
authenticator: "ActiveRecord"
options:
connection:
adapter: "postgresql"
View list_users.feature
Feature: List Users
Background:
Given I send and accept JSON
Scenario: Successfully list users when logged in user is admin
Given the following users exist
|id|email |first_name |last_name |password |authentication_token|role |
|10|user1@gmail.com |First |User |test1234 |auth_token_123 |user |
|11|user2@gmail.com |Second |User |test1234 |auth_token_223 |user |