Skip to content

Instantly share code, notes, and snippets.

View pixelmatrix's full-sized avatar

Josh Pyles pixelmatrix

View GitHub Profile
@pixelmatrix
pixelmatrix / Form.swift
Last active June 6, 2019 20:31
Using ForEach or List with a collection of Strings in SwiftUI
import SwiftUI
struct MyForm : View {
@State var items: [String] = [
"foo",
"bar",
"baz"
]
@pixelmatrix
pixelmatrix / _base.sass
Created May 4, 2011 23:46
Bug with Middleman's default sass
@import "compass"
@import "blueprint"
//…
$blueprint-font-size: 15px
$blueprint-grid-columns: 12
$blueprint-grid-width: 56px
$blueprint-grid-margin: 28px
@pixelmatrix
pixelmatrix / _base.sass
Created May 4, 2011 23:44
Bug with Middleman's default sass
@import "compass"
$blueprint-font-size: 15px
$blueprint-grid-columns: 12
$blueprint-grid-width: 56px
$blueprint-grid-margin: 28px
@import "blueprint"
@pixelmatrix
pixelmatrix / caveatPatchor.js
Created February 25, 2011 05:17 — forked from protocool/caveatPatchor.js
Add Droplr support to caveatPatchor
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
@import base.sass
.main-col
.grey-box
margin-bottom: 20px
padding: 10px
.email-input
width: 300px
.existing-user
width: 300px
@pixelmatrix
pixelmatrix / Rakefile
Created July 22, 2010 19:34
Creating a prompt in a Rake Task
require "rake"
task :say_hi do
puts "What's your name?"
name = $stdin.gets.chomp
puts "Hi #{name}!"
end
//reading
var hash = window.location.hash;
if(hash == '' || hash == "#ichi"){
//show ichi stuff
}else if(hash == "#ni"){
//show ni stuff
}else if(hash == "#san"){
//show san stuff
}