Skip to content

Instantly share code, notes, and snippets.

View bcho's full-sized avatar
💍
一起来发财吧!Let's make some money!

hbc bcho

💍
一起来发财吧!Let's make some money!
View GitHub Profile
<?php
/**
* An action contains:
*
* - action id
* - action name (unique)
*
* Each action is identified by its name.
*
using System;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
namespace XMLTest
{
public class Shots
{
[XmlArrayAttribute("data")]
<?xml version="1.0" encoding="utf-8"?>
<sort xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<snapshots>
<snapshot>
<data>
<value>0.31052097882646068</value>
<value>0.37592563510776233</value>
<value>0.069466209351638053</value>
<value>0.28568892433213078</value>
<value>0.89968156142388944</value>
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
#progress {
display: block;
}
@bcho
bcho / index.html
Last active August 29, 2015 14:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
#progress {
display: block;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tree</title>
<script src="http://visjs.org/dist/vis.js"></script>
<link href="http://visjs.org/dist/vis.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">
int mouseClickedCount = 0;
float mouseLastClickedTimeMS = 0;
Circle[] circles = new circles[100];
int circleIdx = 0;
void setup() {
frameRate(60);
size(960, 800);
greeting = (name = 'world') ->
console.log "Hello, #{name}"
greeting 'hbc'
greeting()
package main
import (
"fmt"
"time"
)
func executorRunner(intervalSecs int, task func()) {
go (func() {
for {
package main
import (
"errors"
"fmt"
"math/rand"
"time"
)
type ResultChan chan string