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
/*! | |
* Generated with CSS Flag Sprite generator (https://www.flag-sprites.com/) | |
*/ | |
.flag { | |
display: inline-block; | |
width: 32px; | |
height: 32px; | |
background: url('flags.png') no-repeat; | |
} |
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 React, { Component } from 'react'; | |
import styles from '../layout/styles'; | |
import {Doughnut} from 'react-chartjs-2'; | |
import Api from '../../utils/ApiManager'; | |
import Chart from 'chart.js'; | |
import {Link} from 'react-router'; | |
// class RadioRow extends Component { |
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 React, { Component, PropTypes } from 'react'; | |
import styles from '../layout/styles'; | |
import {Doughnut} from 'react-chartjs-2'; | |
import Api from '../../utils/ApiManager'; | |
import Chart from 'chart.js'; | |
import {Link} from 'react-router'; | |
class RadioRows extends Component { | |
constructor(props) { |
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
var Result = { "win": 1, "loss": 2, "tie": 3 } | |
function PokerHand(hand) { | |
this.hand = hand; | |
} | |
var CardValues = { "A": 14, "K": 13, "Q": 12, "J": 11, "T": 10, "9": 9, | |
"8": 8, "7": 7, "6": 6, "5": 5, "4": 4, "3": 3, "2": 2 } | |
// TODO: Rank Hand against all possible hand ranks, then compareWith |
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
<h1>Simon Keyboard Game</h1> | |
<div class="user-controls"> | |
<div class="on-off"> | |
<button>Off</button> | |
</div> | |
<div class="scoreboard"> | |
<span>00</span> | |
</div> | |
<div class="strict-mode"> | |
<button>Strict Mode</button> |
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
<!DOCTYPE html> | |
<html lang="en" > | |
<head> | |
<meta charset="UTF-8"> | |
<!-- <link rel="shortcut icon" type="image/x-icon" href="https://production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" />--> | |
<link rel="mask-icon" type="" href="https://production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /> | |
<title>CodePen - D3 Heat Map - Global land surface temperatures</title> | |
<style> |
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
<!DOCTYPE html> | |
<html lang="en" > | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="shortcut icon" type="image/x-icon" href="https://production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /> | |
<link rel="mask-icon" type="" href="https://production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /> |
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
{ | |
"nodes": [ | |
{ "country": "East Timor", "code": "tl" }, | |
{ "country": "Canada", "code": "ca" }, | |
{ "country": "Turkmenistan", "code": "tm" }, | |
{ "country": "United States of America", "code": "us" }, | |
{ "country": "Lithuania", "code": "lt" }, | |
{ "country": "Cambodia", "code": "kh" }, | |
{ "country": "Ethiopia", "code": "et" }, | |
{ "country": "Swaziland", "code": "sz" }, |
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 pygal | |
import os | |
bar = pygal.Bar() | |
bar.title = "Test Graph" | |
bar.add('Lightning', 89) | |
bar.add('Penguins', 76) | |
bar.add('Rangers', 60) | |
bar.add('Predators', 87) |
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 Result = { "win": 1, "loss": 2, "tie": 3 }; | |
/* | |
High pair: | |
AH 8S AS KC JH | |
KS 8D 4D 9S 4S | |
Same hand: | |
KD 4S KC 3H 8S (marked as loss) | |
*/ | |
OlderNewer