This file contains hidden or 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
// bark's prototype insert example 240220 | |
List fclog = new List(); // the log, for the insert | |
SObjectType triggerType = trigger.new.getSObjectType(); // the object name | |
List idx = [SELECT FieldName__c, Default__c FROM FieldChangeIndex__c WHERE Object__c = | |
:triggerType.getDescribe().getLabel() ]; // for the WHERE clause. | |
if (idx.isEmpty()) { | |
return; | |
} | |
for ( sObject trigRecs : Trigger.new ) { // the records that changed |
This file contains hidden or 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
battlefield:Human:Swamp:6 | |
battlefield:Human:Mountain:6 | |
battlefield:Human:Island:6 | |
battlefield:Computer:Grizzly Bears:1 | |
battlefield:Computer:Fugitive Wizard:2 | |
library:Human:Mountain:50 | |
library:Computer:Lightning Bolt:1 | |
library:Computer:Mountain:20 | |
library:Computer:Lightning Bolt:1 | |
library:Computer:Mountain:20 |
This file contains hidden or 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
battlefield:Human:Forest:6 | |
battlefield:Human:Mountain:6 | |
battlefield:Computer:Grizzly Bears:1 | |
battlefield:Computer:Fugitive Wizard:2 | |
library:Human:Xenagos, God of Revels:1 | |
library:Human:Emrakul, the Aeons Torn:1 | |
library:Human:Siege Rhino:1 | |
library:Human:Nahiri, the Harbinger:1 | |
library:Human:Lightning Bolt:1 | |
library:Human:Mountain:55 |
This file contains hidden or 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
<?php | |
namespace Bolt\Extension\DesignSpike\ExampleSearch; | |
use Bolt\Extension\SimpleExtension; | |
use Bolt\Routing\ControllerCollection; | |
use Doctrine\DBAL\Query\QueryBuilder; | |
use Silex\Application; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; |
This file contains hidden or 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
battlefield:Human:Wandering Fumarole:1 | |
battlefield:Human:Mountain:10 | |
battlefield:Human:Island:6 | |
library:Human:Mountain:25 | |
library:Human:Ceaseless Searblades:25 | |
library:Human:Mountain:25 | |
library:Computer:Plains:100 | |
graveyard:Computer:Plains:1 | |
hand:Human:Ceaseless Searblades:1 | |
hand:Human:Flamekin Harbinger:1 |
This file contains hidden or 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
root: | |
_type: prototype | |
_prototype: | |
_type: array | |
_children: | |
default_status: | |
_type: enum | |
_values: [publish, held, draft, timed] | |
description: | |
_type: text |
This file contains hidden or 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
homepage: | |
name: Homepage | |
slug: homepage | |
singular_name: Homepage feature | |
singular_slug: homepagefeature | |
fields: | |
title: | |
type: text | |
class: large | |
required: true |
This file contains hidden or 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
<?php | |
require_once __DIR__ . '/vendor/autoload.php'; | |
$configuration = new Bolt\Configuration\Composer(__DIR__); | |
$configuration->setPath('cache', 'cache'); | |
$configuration->setPath('config', 'app/config'); | |
$configuration->setPath('database', 'app/database'); | |
$configuration->setPath('files', 'content/files'); | |
$configuration->setPath('web', 'content'); | |
$app = new Bolt\Application(array('resources'=>$configuration)); |
This file contains hidden or 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
def thumbnail_width_candidates(mingap, maxgap, minwidth, maxwidth, numitems, totalwidth): | |
return [ | |
(x, y) | |
for y in range(mingap, maxgap) | |
for x in range(minwidth, maxwidth) | |
if | |
x%1==0 and | |
y%1==0 and | |
x*numitems + y*(numitems-1) == totalwidth | |
] |
NewerOlder