Skip to content

Instantly share code, notes, and snippets.

Josh Pyles pixelmatrix

Block or report user

Report or block pixelmatrix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pixelmatrix
pixelmatrix / Form.swift
Last active Jun 6, 2019
Using ForEach or List with a collection of Strings in SwiftUI
View Form.swift
import SwiftUI
struct MyForm : View {
@State var items: [String] = [
"foo",
"bar",
"baz"
]
@pixelmatrix
pixelmatrix / _base.sass
Created May 4, 2011
Bug with Middleman's default sass
View _base.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
Bug with Middleman's default sass
View _base.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 Feb 25, 2011 — forked from protocool/caveatPatchor.js
Add Droplr support to caveatPatchor
View caveatPatchor.js
/*
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.
View gist:548515
@import base.sass
.main-col
.grey-box
margin-bottom: 20px
padding: 10px
.email-input
width: 300px
.existing-user
width: 300px
@pixelmatrix
pixelmatrix / Rakefile
Created Jul 22, 2010
Creating a prompt in a Rake Task
View Rakefile
require "rake"
task :say_hi do
puts "What's your name?"
name = $stdin.gets.chomp
puts "Hi #{name}!"
end
View location.hash.js
//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
}
You can’t perform that action at this time.