This file contains hidden or 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
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'Cloudformation stack to manage permission to deploy a serverless service' | |
Parameters: | |
ServiceName: | |
Description: Name of the Service you want to deploy | |
Type: String | |
Resources: |
This file contains hidden or 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
version: "3" | |
services: | |
snipeit: | |
env_file: ./snipe-it.env | |
image: snipe/snipe-it | |
depends_on: | |
- mysql | |
ports: | |
- "80:80" | |
volumes: |
This file contains hidden or 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.11; | |
/** | |
* @title SafeMath | |
* @dev Math operations with safety checks that throw on error | |
*/ | |
library SafeMath { | |
function mul(uint256 a, uint256 b) internal returns (uint256) { | |
uint256 c = a * b; |
This file contains hidden or 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
coins = 0.00 # just to initialize. | |
price = 1.00 # the price Filecoin states is the minimum | |
amount_raised = 52000000.00 # they've said they already sold $52M in the presale | |
total_filecoin_sold = 85000000.00 # the number of Filecoins already sold in the presale. This would be $52M/price (price was $0.75 and investors could choose up to 30% discount. I'm using 85M coins as an assumption (min 69M max 99M). | |
average_investment = 100000.00 # I'm already being generous here | |
while total_filecoin_sold < (200000000.00 - coins) do # 200M is the max amount of coins | |
price = amount_raised/40000000.00 # this is their function, it's always more than $1 | |
price = price * 0.9 # if you want to model an average discount people will choose | |
coins = average_investment / price # the amount of coins you get with every investment | |
amount_raised = amount_raised + average_investment # let's add the investment to the total raised |
This file contains hidden or 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
0x00 0 STOP | |
0x01 3 ADD | |
0x02 5 MUL | |
0x03 3 SUB | |
0x04 5 DIV | |
0x05 5 SDIV | |
0x06 5 MOD | |
0x07 5 SMOD | |
0x08 8 ADDMOD | |
0x09 8 MULMOD |
This file contains hidden or 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.18; | |
import './ERC20Basic.sol'; | |
import './SafeMath.sol'; | |
/** | |
* @title Basic token | |
* @dev Basic version of StandardToken, with no allowances. | |
* https://github.com/OpenZeppelin/zeppelin-solidity/ | |
*/ |
This file contains hidden or 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 bip39 = require("bip39"); | |
var ethwallet = require('ethereumjs-wallet'); | |
var ProviderEngine = require("web3-provider-engine"); | |
var WalletSubprovider = require('web3-provider-engine/subproviders/wallet.js'); | |
var Web3Subprovider = require("web3-provider-engine/subproviders/web3.js"); | |
var Web3 = require("web3"); | |
// Insert raw hex private key here, e.g. using MyEtherWallet | |
var wallet = ethwallet.fromPrivateKey(Buffer.from('abcdef', 'hex')); |
This file contains hidden or 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
###################################################################### | |
# | |
# File : $Source: /cvsroot/ijbswa/current/user.action,v $ | |
# | |
# $Id: user.action,v 1.9 2008/03/27 18:27:37 fabiankeil Exp $ | |
# | |
# Purpose : User-maintained actions file, see | |
# http://www.privoxy.org/user-manual/actions-file.html | |
# | |
###################################################################### |
This file contains hidden or 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
{"requestingPermissions":null,"cachedExternalAddons":[],"notifiedFeaturesVersion":3,"style":"plain-dark","scrollbarMode":3,"userStyleRules":"/* Show title of unread tabs with red and italic font */\n/*\n.tab.unread .label {\n color: red !important;\n font-style: italic !important;\n}\n*/\n\n/* Add private browsing indicator per tab */\n/*\n.tab.private-browsing .label:before {\n content: \"🕶\";\n}\n*/\n/* Show title of unread tabs with red and italic font */\n\n/*.tab.unread .label { \ncolor: red !important; font-style: italic !important;}*/\n\n/* Add private browsing indicator per tab */\n/*.tab.private-browsing .label:before {content: \\\"🕶\\\";}*/\n\n/* Hide border on tab bar, force its state to 'scroll', adjust margin-left for width of scrollbar. */ \n\n#tabbar { border: 0; overflow-y: scroll !important; margin-left: -18px !important; }\n\n/* Hide .twisty and adjust margins so favicons have 7px on left. */\n\n.tab .twisty { visibility: hidden; /* margin-left: -2px; */}\n\n/* Push tab labels slightly |
This file contains hidden or 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
########################### | |
# Blacklist # | |
########################### | |
## Rules for name-based query blocking, one per line | |
## | |
## Example of valid patterns: | |
## | |
## ads.* | matches anything with an "ads." prefix |