This file contains 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
var five = require('johnny-five'); | |
var Chip = require('chip-io'); | |
var Oled = require('oled-js'); | |
var io = new Chip(); | |
io.i2cConfig({ | |
address: 0x3c, | |
bus: 2 |
This file contains 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 My\Extension\Hooks; | |
use FluidTYPO3\Fluidpages\Provider\PageProvider; | |
use TYPO3\CMS\Backend\Controller\PageLayoutController; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Extbase\Object\ObjectManager; | |
use FluidTYPO3\Flux\Service\WorkspacesAwareRecordService; | |
use FluidTYPO3\Flux\View\PreviewView; |
This file contains 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
# # | |
# Security policy for the TYPO3.NeosDemoTypo3Org package # | |
# # | |
privilegeTargets: | |
'TYPO3\TYPO3CR\Security\Authorization\Privilege\Node\ReadNodePrivilege': | |
'TYPO3.NeosDemoTypo3Org:RegisterPage': | |
# e5335cad-2647-db8a-c15d-a5d69cf0d612 is the node identifier of the "register" node |
This file contains 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
# # | |
# Security policy for the TYPO3.NeosDemoTypo3Org package # | |
# # | |
privilegeTargets: | |
'TYPO3\Flow\Security\Authorization\Privilege\Method\MethodPrivilege': | |
TYPO3_NeosDemoTypo3Org_RegistrationAccess: | |
matcher: method(TYPO3\NeosDemoTypo3Org\Controller\RegistrationController->(index|newAccount|createAccount|createTemporaryAccount)Action()) | |
TYPO3_NeosDemoTypo3Org_FlickrAccess: |
This file contains 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
{ | |
"name": "typo3/flow-base-distribution", | |
"description": "TYPO3 Flow Base Distribution", | |
"license": "LGPL-3.0+", | |
"config": { | |
"vendor-dir": "Packages/Libraries", | |
"bin-dir": "bin" | |
}, | |
"require": { | |
"typo3/flow": "2.3.1", |
This file contains 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
<template name="name_list"> | |
<ul> | |
{{#each names}} | |
<li>{{this.name}}</li> | |
{{/each}} | |
</ul> | |
<button class="insert">Insert random name</button> | |
<button class="update">Update first name</button> |
This file contains 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
<head> | |
<title>template</title> | |
</head> | |
<body> | |
{{> testB}} | |
</body> | |
<template name="testA"> |
This file contains 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
if (Meteor.isClient) { | |
Items = new Meteor.Collection('items', {connection: null, transform: function (doc) { | |
doc.render = function () { | |
console.log('rendered ' + this.name); | |
return 'rendered ' + this.name; | |
}; | |
return doc; |
This file contains 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
var openssl = spawn('openssl', [ 'smime' | |
, '-sign' | |
, '-binary' | |
, '-signer', '/path/to/cert.pem' | |
]); | |
openssl.stdin.write(fileToSignAsBuffer); | |
openssl.stdin.end(); |