This is a simple Markdown File to test Remix Workshops
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.5.0 <0.6.0; | |
// 10000000000000000000 // 10 Ethers | |
contract Project { | |
// The address who deployed the contract | |
address private owner; | |
// The cap to achieved to fund the project | |
uint public cap; | |
// The total funded. |
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
const pluginWs = require('@remixproject/plugin-ws') | |
const express = require('express') | |
const ws = require('express-ws') | |
const bodyParser = require('body-parser'); | |
const cors = require('cors'); | |
const app = express() | |
ws(app) | |
app.use(bodyParser.urlencoded({extended: true})) |
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
import { inject } from '@angular/core'; | |
import { AngularFireAuth } from '@angular/fire/auth'; | |
import { AngularFirestore, AngularFirestoreCollection } from '@angular/fire/firestore'; | |
import { auth, User } from 'firebase'; | |
import { switchMap, tap } from 'rxjs/operators'; | |
import { Observable, of, combineLatest } from 'rxjs'; | |
import { Store } from '@datorama/akita'; | |
export const fireAuthProviders = ['github', 'google', 'microsoft', 'facebook', 'twitter' , 'email'] as const; |
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
{ | |
"accounts": { | |
"account{0}": "0xca35b7d915458ef540ade6068dfe2f44e8fa733c" | |
}, | |
"linkReferences": {}, | |
"transactions": [ | |
{ | |
"timestamp": 1563522532175, | |
"record": { | |
"value": "0", |
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.5.0 <0.6.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol"; | |
contract ERC20 { | |
using SafeMath for uint256; | |
uint256 private _totalSupply; | |
mapping(address => uint256) private _balances; | |
event Transfer(address indexed from, address indexed to, uint256 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
pragma solidity >=0.5.0 <0.6.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol"; | |
contract ERC20 { | |
using SafeMath for uint256; | |
uint256 private _totalSupply; | |
mapping(address => uint256) private _balances; | |
event Transfer(address indexed from, address indexed to, uint256 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
{ | |
"name": "Workshop 1", | |
"description": "Workshop for very beginner", | |
"author": "GrandSchtroumpf", | |
"stepIds": ["ea9f23cf4a50b4ea8899b75a198daeea"] | |
} |
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
@Component({ | |
selector: 'app-root', | |
template: ` | |
<ul> | |
<li *ngFor="let todo of todos$ | async">{{ todo.label }}</li> | |
<button (click)="add()">Add todo</button> | |
</ul> | |
` | |
}) | |
export class AppComponent implements OnInit { |
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
... | |
import { CollectionService, CollectionConfig } from 'akita-firebase'; | |
@Injectable({ providedIn: 'root' }) | |
@CollectionConfig({ path: 'todos' }) | |
export class TodosService extends CollectionService<TodoState> { | |
constructor(db: AngularFirestore, store: TodoStore) { | |
super(db, store); | |
} | |
} |