Skip to content

Instantly share code, notes, and snippets.

View adamstallard's full-sized avatar

Adam Stallard adamstallard

View GitHub Profile
@adamstallard
adamstallard / modest_demo_element.html
Last active October 8, 2015 21:38
Modest demo elements go away when compiled.
<div id="contacts">
<!-- using data from the file 'bob' -->
<contact data="bob" dummy="true"/>
<!-- or entering data as semantic tags -->
<contact demo="true">
<name>jim</name>
<phonenumber>123-456-7890</phonenumber>
</contact>
</div>
@adamstallard
adamstallard / modest_example1.js
Created August 19, 2012 06:33
Modest javascript example 1
$contacts = $('#contacts');
_.each(contacts, function(contact){
$contacts.append(modest.render('contact',contact));
};
@adamstallard
adamstallard / hello.xml
Created September 1, 2012 18:11
Modest Module Usage
<p>Hello!</p>
var testFiles = [];
var files = this.data.files2;
if (grunt.utils._.isString(files)) {
files = [files];
}
else{
files = grunt.utils._.flatten(files);
}
@adamstallard
adamstallard / include2-pre.xhtml
Last active December 21, 2015 20:29
Include a module (compiled with modest).
<?xml version='1.0' encoding='UTF-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<include>lorem</include>
</head>
<body>
<lorem/>
</body>
</html>
@adamstallard
adamstallard / include1-pre.xhtml
Last active December 21, 2015 20:29
Include a module (using modest-preview.js to preview).
<?xml version='1.0' encoding='UTF-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="modest-preview.js"></script>
<include>lorem</include>
</head>
<body>
<lorem/>
</body>
@adamstallard
adamstallard / Grunt.xml
Created August 28, 2013 05:56
Run Configurations for running grunt from the IntelliJ (webstorm) IDE. You need my fork of grunt (which fixes pipe output) to use it.
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Grunt" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="$USER_HOME$/AppData/Roaming/npm/node_modules/grunt-cli/bin/grunt" application-parameters="--stack" working-dir="$PROJECT_DIR$">
<RunnerSettings RunnerId="NodeJS.debug" />
<RunnerSettings RunnerId="NodeJS.run" />
<ConfigurationWrapper RunnerId="NodeJS.debug" />
<ConfigurationWrapper RunnerId="NodeJS.run" />
<method />
</configuration>
</component>
@adamstallard
adamstallard / greetings\hello.xml
Last active December 21, 2015 23:39
Include a module from a different directory with the "path" attribute
<p>Hello, World!</p>
@adamstallard
adamstallard / attr-string-template-pre.xhtml
Last active August 26, 2023 10:50
How to reuse part of an attribute string in modest.
<?xml version='1.0' encoding='UTF-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<include>myImage</include>
</head>
<body>
<myImage>
<base>..</base>
</myImage>
</body>

Coinsensus

Coinsensus is a token that's regularly minted and distributed according to near-consensus of a voting group with a growing or fluctuating membership.

Others may contribute to the mission of an instance of the token by donating other tokens, including ether.

Holders of the token may receive dividends from the donated tokens.

Particulars

Near-consensus is required among those that vote each round, but there's no requirement of quorum.