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.17; | |
| contract CampaignFactory { | |
| address[] public deployedCampaigns; | |
| function createCampaign(uint256 minimum) public { | |
| address newCampaign = new Campaign(minimum, msg.sender); | |
| deployedCampaigns.push(newCampaign); | |
| } |
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
| const side = 600; | |
| const numSlices = 3; | |
| const slice = side / numSlices; | |
| const sliceMovement = 100; | |
| function setup() { | |
| createCanvas(side, side); | |
| noLoop(); | |
| noFill(); | |
| colorMode(HSB); |
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
| const side = 600; | |
| const numSlices = 7; | |
| const slice = side / numSlices; | |
| function setup() { | |
| createCanvas(side, side); | |
| background(0, 0, 0); | |
| noLoop(); | |
| colorMode(HSB); | |
| strokeWeight(50); |
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
| // initialize all constants | |
| const side = 1440; | |
| const numSlices = 3; | |
| const slice = side / numSlices; | |
| const circleSize = side / (numSlices + 1); | |
| const randomLimit = 100000; | |
| const dir = 'images/'; | |
| const canvasName = getRandomInt(randomLimit).toString(); | |
| // helper function for random integer generation |
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
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress | |
| # Bare Minimum Git | |
| # http://ironco.de/bare-minimum-git/ | |
| # ver 20180125 | |
| # | |
| # This file is tailored for a WordPress project | |
| # using the default directory structure | |
| # | |
| # This file specifies intentionally untracked files to ignore |