View github-deployment-success.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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} \ |
View github-deployment.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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}" | |
} |
View marketplace-passport-example.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// “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') | |
); |
View git-taculous.zsh-theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]%}" |
View sass_converter.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
View app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.application({ | |
name: 'My App', | |
launch: function() { | |
Ext.create('Ext.window.Window',{ | |
title: 'Custom Window', | |
width : 200, | |
height : 150, | |
modal: true, | |
layout: 'fit', |
View index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
View app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.application({ | |
name: 'My App', | |
launch: function() { | |
Ext.create('Ext.window.Window',{ | |
title: 'Custom Window', | |
width : 200, | |
height : 150, | |
modal: true, | |
layout: 'fit', |
View gist:437312
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@property(nonatomic, retain) IBOutlet CustomUIActionSheetViewController *customUIActionSheetViewController; |