Skip to content

Instantly share code, notes, and snippets.

View nummi's full-sized avatar
😺
Working from home

Jerry Nummi nummi

😺
Working from home
View GitHub Profile
@nummi
nummi / app.jsx
Last active August 25, 2017 21:40
React Contextual Component
// https://codesandbox.io/s/kxzwolv9k7
import React, { Component } from 'react';
import { render } from 'react-dom';
class Ember extends Component {
constructor(props) {
super(props);
this.state = { isCool: 'yasss' };

Tiny Content Framework

About the project

This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.

Give me feedback on Twitter (@nicoleslaw) or by email (nicole@nicolefenton.com).

Contents

<nav class="navbar">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
class Accounts {
public double Balance {
get { return balance; }
set { balance = value; }
}
public double Withdrawl {
get { return withdrawl; }
set { withdrawl = value; }
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectFortune1
{
class Program
{
@nummi
nummi / App.js
Created December 16, 2016 00:06 — forked from ryanflorence/App.js
import React, { Component } from 'react'
import { Block, Flex } from 'jsxstyle'
const Row = Flex
const Col = (props) => <Flex {...props} flexDirection="column"/>
var history = {
redo_list: [],
undo_list: [],
@nummi
nummi / audio.html
Last active November 13, 2016 21:47
Feedback audio
<html>
<body>
<button onclick="window.feedbackAudio.success();">Success</button> &nbsp; | &nbsp;
<button onclick="window.feedbackAudio.attention();">Attention</button> &nbsp; | &nbsp;
<button onclick="window.feedbackAudio.sad();">Sad</button>
<script src="audio.js"></script>
</body>
</html>
@nummi
nummi / controller.js
Last active December 15, 2015 21:06
Aperta-Validation
const Validations = buildValidations({
pfaQuestion1b: validator('pfa-number', true)
});
export default TaskController.extend(Validations, {
pfaQuestion1bAnswer: computed('model.nestedQuestions.[]', function() {
return this.get('model').answerForQuestion('pfa_question_1b');
}),
pfaQuestion1b: computed.alias('pfaQuestion1bAnswer.value')
});
@nummi
nummi / route.js
Last active October 21, 2015 16:26
// pods/paper/task/index/route.js
model(params) {
return this.store.find(params.task_id);
},
setupController(controller, model) {
this._super(controller, model);
controller.set('componentName', model.get('some-property-we-can-use'));
}
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Hey Ember Columbus'
});