Skip to content

Instantly share code, notes, and snippets.

adsc-cloudtec

Block or report user

Report or block adsc-cloudtec

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View excerpt3.js
this.tokens = [];
// Load wallet list from local storage
let wallets = JSON.parse(localStorage.getItem('wallets'));
let transport = new Transport(wallets[2].network);
let viewTokens = this.tokens;
transport.findTokens(this.tokenTemplates[1], function(tokens) {
console.log('tokens: ' + JSON.stringify(tokens));
viewTokens = tokens;
View excerpt2.js
this.tokens = [];
// Load wallet list from local storage
let wallets = JSON.parse(localStorage.getItem('wallets'));
let counter = 0;
wallets.forEach(function(wallet) {
// TODO: Get transport from config
let transport = new Transport(wallet.network);
View excerpt.js
// TODO: Use token model
let token = {};
token.hash = tx.hash;
let valid = true;
tx.outputs.forEach(function(output) {
// Try to understand output as appId
token.appIds = [];
template.appIds.forEach(function(appId) {
if (appId.address === output.addresses[0]) {
View networks.js
module.exports = {
bitcoin: {
messagePrefix: '\x18Bitcoin Signed Message:\n',
bech32: 'bc',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 0x00,
scriptHash: 0x05,
View query.php
$qb = $repository
->createQueryBuilder('f')
->select('f')
->join('f.address', 'a')
->join('a.locality', 'l')
->join('l.canton', 'c')
->leftJoin('f.facilities', 'fa', Join::WITH, 'fa.deleted <> 1')
->leftJoin('f.users', 'u', Join::WITH, 'u.deleted <> 1')
->leftJoin('u.roles', 'r', Join::WITH, 'r.id = :role')
->join('f.events', 'e')
View composer.json
{
"name": "sulu/sulu-standard",
"license": "MIT",
"type": "project",
"description": "The sulu content management framework",
"autoload": {
"psr-0": {
"": "src/"
},
"classmap": [
View composer.lock
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "373e551348d1dd607c1e8dcb085c7011",
"packages": [
{
"name": "aferrandini/urlizer",
View admin prod.log
[2017-09-08 11:58:54] request.INFO: Matched route "sulu_websocket.fallback". {"route_parameters":{"_controller":"sulu_websocket.fallback_controller:send","_format":"json","appName":"admin","_route":"sulu_websocket.fallback"},"reque
st_uri":"http://staging.spitex-bern.ch/admin/websocket/admin"} []
[2017-09-08 11:58:54] security.DEBUG: Read existing security token from the session. {"key":"_security_admin"} []
[2017-09-08 11:58:54] security.DEBUG: User was reloaded from a user provider. {"username":"admin","provider":"Sulu\\Bundle\\SecurityBundle\\User\\UserProvider"} []
[2017-09-08 11:58:55] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception
View sulu.yml
sulu_http_cache:
handlers:
debug:
enabled: %kernel.debug%
url:
enabled: true
proxy_client:
symfony:
enabled: true
View ls cmf
+--------------------------+-----------------+--------------------------------------+
| spitex_intranet/ | nt:unstructured | |
| snippets/ | nt:unstructured | |
| spitex_bern_ch/ | nt:unstructured | |
| intranet_spitex_bern_ch/ | nt:unstructured | |
| jcr:mixinTypes | NAME (17) | [0] mix:referenceable |
| jcr:primaryType | NAME (15) | nt:unstructured |
| jcr:uuid | STRING (36) | 3b1a3b5b-728c-448d-a145-e2aa8a34ec06 |
+--------------------------+-----------------+--------------------------------------+
1 nodes, 3 properties in set (0.033160 sec)
You can’t perform that action at this time.