Skip to content

Instantly share code, notes, and snippets.

View rad182's full-sized avatar
🏠
Working from home

Royce Dy rad182

🏠
Working from home
View GitHub Profile
class UserLevels < ActiveRecord::Base
has_many :users
end
class User < ActiveRecord::Base
acts_as_authentic
has_many :posts
belongs_to :user_level
end
class UserLevels < ActiveRecord::Base
has_many :users
end
class User < ActiveRecord::Base
acts_as_authentic
has_many :posts
belongs_to :user_level
end
Pod::Spec.new do |s|
s.name = 'JIRAConnect'
s.version = '1.2.1'
s.summary = "Provide the following functionality: Crash Reporting and 2-way Feedback communication."
s.homepage = "http://atlassian.com/"
s.license = { :type => 'Apache', :file => 'README.md' }
s.author = { "Nick Pellow" => "npellow@atlassian.com", "Shihab Hamid" => "shamid@atlassian.com" }
s.source = { :hg => 'https://bitbucket.org/atlassian/jiraconnect-ios', :revision => '1.2.1' }
s.platform = :ios, '4.0'
s.source_files = 'JIRAConnect/JMCClasses/{Core,Base}/**/*.{h,m}'
#!/usr/bin/env ruby
# Requires ImageMagick: `brew install imagemagick`
# Requires version.sh from https://gist.github.com/osteslag/1089407
#
# Set RGM_STAMP_VERSION_ON_ICONS=1 in your build settings to enable/disable
# stamping on Debug/Relase configurations.
#
# Make base unstamped versions Icon.base.png, &c. in the source tree. The
# script will make stamped versions Icon.png, &c. It relies on Xcode to copy
@rad182
rad182 / keybase.md
Last active October 20, 2016 05:35

Keybase proof

I hereby claim:

  • I am rad182 on github.
  • I am rad182 (https://keybase.io/rad182) on keybase.
  • I have a public key ASCzun0dI-mZDrosZkQro5EeV2JxX_XRNZExwA3oHz5UXwo

To claim this, I am signing this object:

@rad182
rad182 / version.sh
Created October 20, 2015 13:56 — forked from osteslag/version.sh
Script for managing build and version numbers using git and agvtool. See link in comments below.
#!/bin/sh
# Script for managing build and version numbers using git and agvtool.
# Change log:
# v1.0 18-Jul-11 First public release.
# v1.1 29-Sep-12 Launch git, agvtool via xcrun.
version() {
@rad182
rad182 / GIF-Screencast-OSX.md
Created January 6, 2016 15:32 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

import Foundation
public class CredentialHelper {
// MARK: Init
private var host: String
private var protectionSpace: NSURLProtectionSpace
public init(host: String) {
self.host = host
protectionSpace = NSURLProtectionSpace(host: host, port: 0, `protocol`: "http", realm: nil, authenticationMethod: nil)
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
#!/bin/bash
################################################################################
# Does a mass upgrade of your Homebrew apps and allows you to interactively
# select which Cask apps to upgrade.
#
# ./brew-cask-upgrade.sh "<BREW_EXCLUDES>" "<CASK_EXCLUDES>"
#
# Requirements:
# Homebrew http://brew.sh/