Skip to content

Instantly share code, notes, and snippets.

View albertvolkman's full-sized avatar

Albert Volkman albertvolkman

View GitHub Profile
AppBundle\Entity\Recipe:
type: entity
id:
id:
type: integer
generator: { strategy: AUTO }
fields:
name:
type: string
length: 100
@albertvolkman
albertvolkman / gist:1d1930f99b7103105cdd
Created December 12, 2014 16:18
GDoc Sheet Christmas Card List
var ss = SpreadsheetApp.getActiveSpreadsheet();
/**
* Runs at script installation.
*/
function onInstall() {
onOpen();
}
/**
/**
* Load available payment methods for an order.
*
* @param string $order_uuid
* The order's UUID.
*
* @return array
* The available payment methods.
*/
public function getUserPaymentMethods($order_uuid)
/**
* Apply payment against order.
*
* @param string $order_uuid
* The order UUID.
* @param string $payment_method
* The pipe-delimited string representing the payment method.
* @param integer $amount
* The amount to apply to the order, without the decimal.
*/
@albertvolkman
albertvolkman / gist:06288f1315ed33d32e32
Created September 27, 2014 02:47
New Issue Template
  | Detail
------------ | -------------
Browser | [ Chrome / Firefox / Internet Explorer / Netscape Navigator ]
OS | [ OSX / Windows / Linux ]
User |
URL |
Screenshot | ![Screenshot]( [screenshot] )
Notes |
Array
(
[name] => Moto 360
[title] =>
[aka] =>
[logo] =>
[image] => File:Android Wear preview.jpg
[developer] => [[Motorola Mobility]]
[manufacturer] =>
[family] =>
<?php
public function getAllUuids($exclude_users)
{
$this->uuidOnly = true;
$this->result = array();
if (!$this->filters(self::DATABASE_MONGO)) {
// Searches SQL without mongo.
$this->loadSQLData(true, true);
} else {
<?php
/**
* Implements hook_drush_command().
*/
function imagestyles_drush_command() {
$items = array();
$items['imagestyles'] = array(
'callback' => 'imagestyles_drush_callback',
<body class=" hasGoogleVoiceExt"><object type="application/x-shockwave-flash" data="http://files.ghanalive.tv/secure-player/player.swf" width="650" height="500" bgcolor="#000000" id="mediaplayer" name="mediaplayer" tabindex="0"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="seamlesstabbing" value="true"><param name="wmode" value="opaque"><param name="flashvars" value="netstreambasepath=http%3A%2F%2Fwww.ghanalive.tv%2Ffifa-world-cup-2014%2F&amp;id=mediaplayer&amp;stretching=exactfit&amp;file=skylite%2Fams%2Fgtv-sports&amp;duration=0&amp;autostart=true&amp;streamer=rtmp%3A%2F%2Fskylite.pointcdn.net&amp;controlbar.position=bottom"></object>
</body>
@albertvolkman
albertvolkman / Rakefile
Last active August 29, 2015 14:03 — forked from arturo-c/Rakefile
require 'resque'
namespace :resque do
desc "Clear pending tasks"
task :clear do
queues = Resque.queues
queues.each do |queue_name|
puts "Clearing #{queue_name}..."
Resque.redis.del "queue:#{queue_name}"
end