Skip to content

Instantly share code, notes, and snippets.

@lifuzu
lifuzu / gollum.conf
Created August 22, 2014 17:39 — forked from leon/gollum.conf
#
# Install:
# install https://github.com/github/gollum
# in /srv/wiki do a git init
# add this script to /etc/init/gollum.conf
#
# Usage:
# start/stop/restart gollum
#
@lifuzu
lifuzu / gollum.conf
Created August 22, 2014 06:43 — forked from leon/gollum.conf
#
# Install:
# install https://github.com/github/gollum
# in /srv/wiki do a git init
# add this script to /etc/init/gollum.conf
#
# Usage:
# start/stop/restart gollum
#
#!upstart
2 #
3 # An example upstart script for running a Node.js process as a service
4 # using Forever as the process monitor. For more configuration options
5 # associated with Forever, see: https://github.com/nodejitsu/forever
6 #
7 # You will need to set the environment variables noted below to conform to
8 # your use case, and should change the description.
9 #
10 description "Example upstart script for a Node.js process"
<script type="text/javascript">
var __lc = {};
__lc.license = 4845221;
(function() {
var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
})();
</script>
import UIKit
// How to make singleton classes in Swift: http://stackoverflow.com/questions/24024549/dispatch-once-singleton-model-in-swift
// Basically using global constants is the most easy and safe way to go
class APIClient: NSObject {
let functionSessionManager:AFHTTPSessionManager
class var sharedInstance:APIClient {
import UIKit
// How to make singleton classes in Swift: http://stackoverflow.com/questions/24024549/dispatch-once-singleton-model-in-swift
// Basically using global constants is the most easy and safe way to go
class APIClient: NSObject {
let functionSessionManager:AFHTTPSessionManager
class var sharedInstance:APIClient {
func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {
var cell: UITableViewCell = tableView.dequeueReusableCellWithIdentifier(kCellIdentifier) as UITableViewCell
// Find this cell's album by passing in the indexPath.row to the subscript method for an array of type Album[]
let album = self.albums[indexPath.row]
cell.text = album.title
cell.image = UIImage(named: "Blank52")
cell.detailTextLabel.text = album.price
func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {
var cell: UITableViewCell = tableView.dequeueReusableCellWithIdentifier(kCellIdentifier) as UITableViewCell
if cell == nil {
cell = UITableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: kCellIdentifier)
}
var rowData: NSDictionary = self.tableData[indexPath.row] as NSDictionary
// Add a check to make sure this exists
//
// SlideAnimatedTransitioning.h
// SwipeLeft
//
// Created by Visnu on 4/14/14.
// Copyright (c) 2014 Visnu Pitiyanuvath. All rights reserved.
//
#import <Foundation/Foundation.h>
/*
* This is script for the Jenkins email-ext plugin.
* It make it possibile to send a mail for failing downstream jobs to
* source committer. It have to be used for.
*
* Usage: save this script in $JENKINS_HOME/email-templates/committers.groovy
* In the job configuration use the value "${SCRIPT, script="committers.groovy"}"
* in the field "Global Recipient List" for the component "Editable Email Notification"
*
*/