Skip to content

Instantly share code, notes, and snippets.

This is a proper patch
4
Making this nice
@dominickm
dominickm / untitled.txt
Created November 20, 2012 05:07
Write a quick description for the code.
Your code goes here.
@dominickm
dominickm / gist:4243621
Created December 9, 2012 06:39
FizzBuzz Ruby
1.upto(100) do |num|
if (num % 15).zero?
puts "FizzBuzz"
elsif (num % 5).zero?
puts "Buzz"
elsif (num % 3).zero?
puts "Fizz"
else
puts num
end
@dominickm
dominickm / I am a tet.txt
Created December 12, 2012 01:58
Stil a test
testers test all
@dominickm
dominickm / Pretty Log
Last active January 7, 2020 15:35
This is a Git Log | SublSpecial thanks to JThrasher for the idea!
All Commits
git log --pretty=format:"* %s" | subl
// This is meant to go along with Coder Radio Episode 204
// Optional types in Swift 101
struct JarJar {
var senateSpeach: String? // the '?' means messa might be nil and makes me an Optional type
func voteOfNoConfidence() {
// attempting to use the senateSpeach var but not setting it's value
let isSith = senateSpeach?.containsString("something something darkside") // senateSpeach is nil
@dominickm
dominickm / UIAlertfail.m
Last active September 19, 2016 01:48
UIAlert Fail
UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"Erorr" message:@"All fields are required." delegate:self cancelButtonTitle:self otherButtonTitles:nil];