Skip to content

Instantly share code, notes, and snippets.

View homeyer's full-sized avatar

Andrew Homeyer homeyer

View GitHub Profile
@property(nonatomic, retain) IBOutlet CustomUIActionSheetViewController *customUIActionSheetViewController;
@homeyer
homeyer / app.js
Created October 7, 2011 05:50
ExtJS4 out of the box window styling
Ext.application({
name: 'My App',
launch: function() {
Ext.create('Ext.window.Window',{
title: 'Custom Window',
width : 200,
height : 150,
modal: true,
layout: 'fit',
@homeyer
homeyer / index.html
Created October 7, 2011 05:59
index.html for basic ExtJS 4 app
<html>
<head>
<link rel="stylesheet" type="text/css" href="resources/css/my-ext-theme.css">
<script type="text/javascript" src="extjs/ext.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body></body>
</html>
@homeyer
homeyer / app.js
Created October 7, 2011 10:14
An Ext window with a green button using a custom component UI
Ext.application({
name: 'My App',
launch: function() {
Ext.create('Ext.window.Window',{
title: 'Custom Window',
width : 200,
height : 150,
modal: true,
layout: 'fit',
@homeyer
homeyer / _myapp-buttons.scss
Created October 7, 2011 10:29
ExtJS green button component UI definition
@include extjs-button-ui(
/* UI + Scale */
'green-small',
$border-radius: $button-small-border-radius,
$border-width: $button-small-border-width,
$border-color: green,
$border-color-over: green,
$border-color-focus: green,
module Jekyll
# Sass plugin to convert .scss to .css
#
# Note: This is configured to use the new css like syntax available in sass.
require 'sass'
class SassConverter < Converter
safe true
priority :low
def matches(ext)
autoload -U add-zsh-hook
autoload -Uz vcs_info
setopt promptsubst
local reset white grey green red yellow
reset="%{${reset_color}%}"
white="%{$fg[white]%}"
grey="%{$fg_bold[black]%}"
green="%{$fg_bold[green]%}"
// “InstallationURL” configured in marketplace
app.get('/marketplace/purchase',
// mark as a marketplace purchase
(req, res, next) => {
req.session.isMarketplacePurchase = true;
next();
},
//send users through your normal GitHub Oauth
passport.authenticate('github')
);
#!/bin/bash
# Create a deployment
create_gh_deployment () {
curl -s -X POST "https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/deployments" \
-H 'Content-Type: application/json' \
-H 'Accept: application/vnd.github.ant-man-preview+json' \
-u ${GITHUB_ACCESS_TOKEN} \
-d "{"ref": "${CIRCLE_SHA1}", "environment": "${environment}", "required_contexts": [], "auto_merge": false}"
}
#!/bin/bash
# Notify GitHub of a successful deployment
notify_gh_about_a_deployment () {
declare -r deployment_id=${1}
declare -r deployment_status=${2}
curl -s -X POST "https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/deployments/${deployment_id}/statuses" \
-H 'Content-Type: application/json' \
-H 'Accept: application/vnd.github.ant-man-preview+json' \
-u ${GITHUB_ACCESS_TOKEN} \