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.20; | |
contract Casino { | |
address public owner; | |
uint256 public minimumBet; | |
uint256 public totalBet; | |
uint256 public numberOfBets; | |
uint256 public maxAmountOfBets = 100; | |
address[] public players; | |
struct Player { |
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
// |
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 { where, equals, gt, is, pipe, __, curry, tryCatch, either } = require('ramda'); | |
const enforceType = curry((pred, obj) => { | |
if (pred(obj)) return obj; | |
throw new Error(); | |
}); | |
const catchTypeError = tryCatch(__, (err, obj) => void 0); | |
const gaurdedFn = (typePredicate, fn) => catchTypeError( |
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
<?php | |
echo "<h1> #1 - Standard indexed Array</h1>"; | |
$array1 = array(55, 66, 77, 88); | |
$array1[] = 99; | |
$array1[0] = 11; | |
for ($i = 0; $i < count($array1); $i++) { | |
echo $array1[$i]."<br />"; | |
} |
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
[{ | |
"name": "red", | |
"key": "red", | |
"android": "red", | |
"shades": { | |
"50": { | |
"hex": "#ffebee", | |
"contrast": "black" | |
}, | |
"100": { |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-pages/core-pages.html"> | |
<link rel="import" href="../google-map/google-map.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
'use strict'; | |
const electron = require('electron'); | |
const app = electron.app; | |
const globalShortcut = electron.globalShortcut; | |
// report crashes to the Electron project | |
require('crash-reporter').start(); | |
// adds debug features like hotkeys for triggering dev tools and reload | |
require('electron-debug')(); |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-pages/core-pages.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<link rel="import" href="../cool-clock/cool-clock.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
<link rel="import" href="components/polymer/polymer.html"> | |
<link rel="import" href="/bower_components/core-iconset-svg/core-iconset-svg.html"> | |
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,500italic" rel="stylesheet" type="text/css"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
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
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-icon-button/paper-icon-button.html"> | |
<polymer-element name="my-element"> |