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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Audio; | |
using Microsoft.Xna.Framework.Content; | |
using Microsoft.Xna.Framework.Graphics; | |
using Microsoft.Xna.Framework.Input; |
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
# You need to run VStats plugin and server | |
# See https://github.com/LibertyLocked/VStats | |
import RPi.GPIO as GPIO | |
import time | |
import urllib2 | |
import json | |
led0=17 | |
led1=18 |
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
using System; | |
using System.Collections.Generic; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Graphics; | |
namespace C3.XNA | |
{ | |
/// <summary> | |
/// </summary> | |
public static class Primitives2D |
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
'use strict' | |
function* fibGen(limit) { | |
let prevVal = 0, currVal = 1; | |
let nextVal = 0; | |
while (!limit || currVal <= limit) { | |
yield currVal; | |
nextVal = currVal + prevVal; | |
prevVal = currVal; | |
currVal = nextVal; |
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
pragma solidity 0.4.15; | |
contract RemittanceManager { | |
struct Remittance { | |
address funder; | |
address collector; | |
uint amount; | |
bytes32 combinedPassword; | |
} | |
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
/** | |
* Basic payment mixing contract | |
* Do not copy this contract! It's never been tested or audited | |
* It also lacks a withdraw function for payers | |
*/ | |
pragma solidity 0.4.18; | |
contract MixingBasic { | |
address owner; | |
uint public amount; |
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
/** | |
* A mixing contract using one time pad | |
* Do not copy this code as it is not tested or audited. | |
*/ | |
pragma solidity 0.4.18; | |
contract MixingOTP { | |
address operator; | |
mapping(address => bool) payers; | |
mapping(address => bool) paid; |
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
/** | |
* A multisig wallet leveraging offchain communication channels | |
* to send signatures around that the owners don't have to | |
* pay any gas in the process. Only the recipient pays gas. | |
*/ | |
pragma solidity ^0.4.18; | |
contract Multisig { | |
event LogMoneySent(address to, uint amount); |
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
#!/bin/sh | |
# This script runs NPM using a version of node specified in nvmrc | |
# npm-nvm.sh <command> | |
# Examples: | |
# - npm-nvm.sh install | |
# - npm-nvm.sh run build | |
NPM_PREFIX=$(npm config get prefix) | |
npm config delete prefix |
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
[Nemo Action] | |
Name=Open folder in Code - OSS | |
Comment=Open current folder in Code - OSS | |
Icon-Name=vscode | |
Selection=any | |
Extensions=any | |
EscapeSpaces=true | |
Exec=/bin/sh -c "cd %P && code ." | |
Dependencies=code; |