Skip to content

Instantly share code, notes, and snippets.

View sminnee's full-sized avatar

Sam Minnée sminnee

View GitHub Profile
commit 00d70606cc8e66dc35f7a54c8c62632a555142d3
Author: Sam Minnee <[email protected]>
Date: Wed Feb 15 15:15:58 2017 +1300
NEW: Update to latest framework.
diff --git a/.htaccess b/.htaccess
index 81693c6..82d78c4 100644
--- a/.htaccess
+++ b/.htaccess
diff --git a/platforms/avr/clockless_trinket.h b/platforms/avr/clockless_trinket.h
index a883aea..b842e96 100644
--- a/platforms/avr/clockless_trinket.h
+++ b/platforms/avr/clockless_trinket.h
@@ -22,6 +22,10 @@ FASTLED_NAMESPACE_BEGIN
#define FASTLED_SLOW_CLOCK_ADJUST
#endif
+#ifndef FASTLED_REPEAT_LEDS
+#define FASTLED_REPEAT_LEDS 1
<?php
require_once(__DIR__ . '/../vendor/autoload.php');
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Core\Config\Config;
use SilverStripe\Core\Config\Config_ForClass;
use SilverStripe\Control\Session;
use SilverStripe\Control\HTTPRequest;
use SilverStripe\ORM\DataModel;
Array
(
[something] => Array
(
[0] => Array
(
[bla] => foo
[whee] => Array
(
[0] => something
<?php
$data1 = [ "bla" => "foo", "whee" => [ "something", [ 1, 2, 3, 4, 5 ] ] ];
$data2 = [ "baz" => $data1, "heh" => $data1, "yep" => [6, 7, 8, 9 ,10 ] ];
$data3 = [ $data1, $data2, $data1, $data2, $data1, $data2 ];
$data4 = [ "something" => $data3, "else" => [$data1, $data2], "heh" => [ $data3, $data3, $data3 ] ];
print_r($data4);
define('COUNT', 100000);
<?php
$data1 = [ "bla" => "foo", "whee" => [ "something", [ 1, 2, 3, 4, 5 ] ] ];
$data2 = [ "baz" => $data1, "heh" => $data1, "yep" => [6, 7, 8, 9 ,10 ] ];
$data3 = [ $data1, $data2, $data1, $data2, $data1, $data2 ];
$data4 = [ "something" => $data3, "else" => [$data1, $data2], "heh" => [ $data3, $data3, $data3 ] ];
define('COUNT', 100000);
timeIt("serialize/unserialize", function () use ($data4) {
<?php
interface ResourceLocator
{
/*
* Return a reference to a package resource
*
* @param string $package The full composer package name
* @param string $filename The name of the resource within that package
* @return Resource An object representing the given resource
@sminnee
sminnee / -
Created September 26, 2016 23:27
Notice: Undefined index: scope_condition in /usr/local/Cellar/php-code-sniffer/2.6.2/CodeSniffer/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php on line 157
FILE: /Users/sminnee/Sites/ss4/framework/ORM/ArrayLib.php
----------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
----------------------------------------------------------------------
81 | ERROR | Method name "ArrayLib::array_values_recursive" is not
| | in camel caps format
109 | ERROR | Method name "ArrayLib::filter_keys" is not in camel
diff --git a/admin/client/dist/js/bundle.js b/admin/client/dist/js/bundle.js
index 15460e8..062e196 100644
--- a/admin/client/dist/js/bundle.js
+++ b/admin/client/dist/js/bundle.js
@@ -1,8 +1,8 @@
-webpackJsonp([5],[function(e,t,n){"use strict"
+webpackJsonp([5],{0:function(e,t,n){"use strict"
n(2),n(5),n(18),n(21),n(23),n(25),n(35),n(39),n(49),n(50),n(51),n(52),n(53),n(54),n(56),n(59),n(61),n(64),n(67),n(69),n(71),n(73),n(74),n(83),n(84),n(85),n(87),n(88),n(89),n(90),n(91),n(92),n(93),n(95),
-n(96),n(97),n(98),n(99),n(100),n(101),n(104),n(106),n(107),n(108),n(109),n(113),n(114),n(115),n(116),n(117),n(114),n(109),n(120),n(121),n(123),n(124)},,function(e,t,n){(function(t){e.exports=t.SilverStripeComponent=n(3)
+n(96),n(97),n(98),n(99),n(100),n(101),n(104),n(106),n(107),n(108),n(109),n(113),n(114),n(115),n(116),n(117),n(114),n(109),n(120),n(121),n(123),n(124)},2:function(e,t,n){(function(t){e.exports=t.SilverStripeComponent=n(3)
diff --git a/admin/client/dist/js/bundle.js b/admin/client/dist/js/bundle.js
index 15460e8..01aed24 100644
--- a/admin/client/dist/js/bundle.js
+++ b/admin/client/dist/js/bundle.js
@@ -263,24 +263,25 @@ function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e inst
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
-e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{
-value:!0})