Skip to content

Instantly share code, notes, and snippets.

Andy Tudhope andytudhope

Block or report user

Report or block andytudhope

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 hidden_dragon
, . ,
._/), .(\/),
ii// )/) ,-=-. ,-=-. ,-=-. ,-=-. (\/|/)
,^=-9 ,//) )=-="' '"=-="' '"=-="' '"=-="' '"=-="/ }/)
""_,),,/ " ,-=-. ,-=-. ,-=-. ,-=-. ,/`~
""" )))\))=-="' '"=-="' '"=-="' '"=-="' '"=-="
<< << << <<
((( >((( > ((( > ((( >
View crouching_tiger
("`-''-/").___..--''"`-._
`6_ 6 ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-`
_..`--'_..-_/ /--'_.' ,'
(il),-'' (li),' ((!.-'
View extension.edn
{meta {:name "Test"
:description "Demonstration of collectible command"
:documentation ""}
views/preview
(let [{{{symbol :symbol token :token tx-hash :tx-hash} :params} :content outgoing :outgoing timestamp-str :timestamp-str} @properties]
(let [collectible-token (query [:get-collectible-token symbol token])]
[view {:flex-direction :column
:align-items :flex-start}
[nft-token collectible-token]
View app.js
"use strict";
var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
};
! function e(t, n, r) {
function i(a, u) {
if (!n[a]) {
if (!t[a]) {
View i18n.cljs
(ns status-im.i18n
(:require
[cljs.spec.alpha :as spec]
[status-im.react-native.js-dependencies :as rn-dependencies]
[status-im.translations.af :as af]
[status-im.translations.ar :as ar]
[status-im.translations.bel :as be]
[status-im.translations.cs :as cs]
[status-im.translations.da :as da]
[status-im.translations.de :as de]
View gretzke
var price = 50000000000000000;
status.command({
name: 'hours',
description: 'How many hours do you want to book the ...?',
color: '#CCCCCC',
sequentialParams: true,
params: [{
name: 'hours',
type: status.types.NUMBER,
View Bot.js
status.command({
name: "greet",
title: "Greeter",
description: "Helps you choose greetings",
color: "#0000ff",
params: [{
name: "greet",
type: status.types.TEXT,
suggestions: helloSuggestions
}]
View deployer
module.exports = function(deployer) {
deployer.deploy(MiniMeTokenFactory)
.then(() => {
return MiniMeTokenFactory.deployed()
.then(f => {
return SCB.new(f.address)
})
.then(t => {
token = t
console.log('SCT:', token.address)
View voting-demo
import React from 'react';
import {Bond} from 'oo7';
import {bonds} from 'oo7-parity';
import {Rspan, Rimg, ReactiveComponent} from 'oo7-react';
import {InputBond, HashBond, BButton, TransactionProgressLabel} from 'parity-reactive-ui';
const CounterABI = [{"constant":false,"inputs":[{"name":"_option","type":"uint256"}],"name":"vote","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"hasVoted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"votes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"who","type":"address"},{"indexed":true,"name":"option","type":"uint256"}],"name":"Voted","type":"event"}];
const Options = ['Red', 'Green', 'Blue'];
View basic-demo
import React from 'react';
import {Bond} from 'oo7';
import {Rspan} from 'oo7-react';
import {InputBond, HashBond, BButton, TransactionProgressLabel, TransactButton} from 'parity-reactive-ui';
import {bonds, formatBlockNumber, formatBalance, isNullData} from 'oo7-parity';
export class App extends React.Component {
constructor() {
super();
this.bond = new Bond();
You can’t perform that action at this time.