Skip to content

Instantly share code, notes, and snippets.

@mklickman
mklickman / README.md
Created December 12, 2019 14:52
Things End Users Care About but Programmers Don't
@mklickman
mklickman / Resources.md
Last active July 26, 2019 12:52
Web Development Resources for Beginners
<form class="zip-input-group" zip-input ng-submit="checkZip()">
<input class="zip-input-text" name="zip-text" type="text" maxlength="5" required>
<input type="submit" value="Go!" class="zip-input-submit">
</form>
.button {
box-sizing: border-box;
display: inline-block;
border: 1px solid transparent;
border-radius: 8px;
font-family: 'karla';
font-size: 1.375rem;
line-height: 1;
text-align: center;
padding: 1.25rem 1.75rem;
@mklickman
mklickman / student-form.ts
Created October 21, 2017 17:13
Angular reactive form with conditionally pre-set data
import { Component, OnInit } from '@angular/core';
import { NavParams } from 'ionic-angular';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { StudentsProvider } from '../../../providers/students-provider';
@Component({
selector: 'student-form',
templateUrl: 'student-form.html'
})
export class StudentForm implements OnInit {
@mklickman
mklickman / local-production-rake-output.txt
Last active March 22, 2017 14:23
Heroku production errors
$ RAILS_ENV=production bundle exec rake -P
syck has been removed, psych is used instead
rake about
environment
rake assets:clean
environment
tmp:cache:clear
rake assets:precompile
rake db:abort_if_pending_migrations
environment
<div class="app-root" ng-controller="rootController">
<div class="carousel">
<!--
I have a UI Bootstrap carousel with some slides in it. Each slide
needs to be both clickable and swipeable, with a mouse (this problem
is not an issue on mobile).
The problem I'm having is that when you swipe with a mouse click,
letting the mouse up at the end of the swipe will trigger the click
@mklickman
mklickman / app.component.js
Last active July 12, 2016 20:03
browserify ES2015 woes
const AppComponent = {
template: `
<div class="app-component-root">
<div ui-view></div>
</div>
`,
};
export default AppComponent;
@mklickman
mklickman / app.js
Last active June 23, 2016 19:29
Browserify error from ui-router
require('angular');
require('angular-ui-router');
require('./gg-root.js');
require('./gg-routes.js');
@mklickman
mklickman / base.scss
Last active May 19, 2016 19:10
A set of example SCSS files which summarize the "components-patterns-views" CSS architecture paradigm outlined in this article from thoughtbot: https://robots.thoughtbot.com/architecting-front-end-styles
// WHAT GOES IN THIS FILE:
//
// - Raw HTML elements (no classes)
// - Any non-rendering SASS (i.e. mixins and functions)
//
// EXAMPLES:
body { }
a { }