In order to send messages through a Gmail account (also applicable to Google Apps accounts) add the following parts to your config files:
Files:
- config/environments/production.rb
- config/gitlab.yml
<?php | |
require_once __DIR__.'/../Silex/silex.phar'; | |
use Silex\Extension\DoctrineExtension; | |
$app = new Silex\Application; | |
$app->register(new DoctrineExtension, array( | |
'doctrine.dbal.connection_options' => array( |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
// Usage example: | |
// input image: http://f.cl.ly/items/3v0S3w2B3N0p3e0I082d/Image%202011.07.22%2011:29:25%20PM.png | |
// | |
// UIImage *buttonImage = [UIImage ipMaskedImageNamed:@"UIButtonBarAction.png" color:[UIColor redColor]]; | |
// .h | |
@interface UIImage (IPImageUtils) | |
+ (UIImage *)ipMaskedImageNamed:(NSString *)name color:(UIColor *)color; | |
@end |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function invite() { | |
var url = '/people/~/mailbox', | |
body = { | |
recipients: { | |
values: [{ | |
person: { |
# encoding: utf-8 | |
"""Experimental Solr Grouping / Field Collapsing backend for Haystack 2.0""" | |
# NOTE: You must be running the latest Pysolr master - no PyPI release yet! | |
# See https://gist.github.com/3750774 for the current version of this code | |
# See http://wiki.apache.org/solr/FieldCollapsing for the Solr feature documentation | |
from __future__ import absolute_import | |
import logging | |
from django.db.models.loading import get_model |
NSString* localizedProperty(NSString* propertyName, id fromObject); |
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "Supply a name for the repo/site to publish" | |
exit 1; | |
fi | |
URLROOT=gitpages.mydomain.com | |
ROOT=/home/www/gitpages.mydomain.com | |
REPOS=$ROOT/repositories |
- (void) loadCustomFont:(NSString*)fontFileName ofType:(NSString*)extension bundle:(NSBundle*)bundle { | |
NSString *fontPath = [bundle pathForResource:fontFileName ofType:extension]; | |
NSData *inData = [NSData dataWithContentsOfFile:fontPath]; | |
CFErrorRef error; | |
CGDataProviderRef provider = CGDataProviderCreateWithCFData((__bridge CFDataRef)inData); | |
CGFontRef font = CGFontCreateWithDataProvider(provider); | |
if (!CTFontManagerRegisterGraphicsFont(font, &error)) { | |
CFStringRef errorDescription = CFErrorCopyDescription(error); | |
NSLog(@"Failed to load font: %@", errorDescription); |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |