Skip to content

Instantly share code, notes, and snippets.

陈学家 - XUEJIA CHEN 6174

Block or report user

Report or block 6174

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
6174 / Guess.js
Created Nov 17, 2017
View Guess.js
* <p>Desc:竞彩类</p>
* <p>Author: luochang</p>
* <p>Copyright: Copyright (c) 2012</p>
* <p>Company: 北京中科易达科技发展有限责任公司</p>
* Added by Luochang at 2014/3/6 Version 1.0
function Guess(lienseId, playId) {
this.licenseId = lienseId; // 彩种,9-竞彩足球,10-竞彩篮球
View index.html
<!doctype html>
<link rel="stylesheet" href="/resources/fonts-8fdb539.css" />
<link rel="icon"
<meta name=viewport content="width=device-width, height=device-height, initial-scale=1">
6174 / go.js
Created Aug 14, 2017
gojs parsed source
View go.js
This file has been truncated, but you can view the full file.
(function(window) {
var g, da = {};
if (!window.document || void 0 === window.document.createElement("canvas").getContext) {
throw window.console && window.console.log("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode."), Error("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode.")
if (!Object.defineProperty) {
throw Error("GoJS requires a newer version of JavaScript")
Function.prototype.bind || (Function.prototype.bind = function(a) {
View main.css
body {
width: 100%;
height: 100%;
overflow: hidden;
top: 0;
left: 0;
margin: 0;
padding: 0;
6174 /
Created Dec 12, 2016 — forked from denji/
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.key
View ajaxFileUpload.js
createUploadIframe: function(id, uri) {
//create frame
var frameId = 'jUploadFrame' + id;
var iframeHtml = '<iframe id="' + frameId + '" name="' + frameId + '" style="position:absolute; top:-9999px; left:-9999px"';
if (window.ActiveXObject) {
if (typeof uri == 'boolean') {
iframeHtml += ' src="' + 'javascript:false' + '"';
} else if (typeof uri == 'string') {
iframeHtml += ' src="' + uri + '"';
View moment-calender.js
var moment = require('moment');
function getEventStart(event)
var date = typeof this.options.eventStartDate === 'function' ?
this.options.eventStartDate(event) : event[this.options.eventStartDate];
if (date) {
return moment(date)
6174 / rust_linear_regression
Last active Mar 9, 2016
rust linear regression
View rust_linear_regression
// ==================================
// linear regression trainer in rust
// @author 6174
// ==================================
// use std::cell::RefCell;
use std::vec::Vec;
fn main() {
// linear_regression();
View revert.git
git reset --hard <commit_id>
git push origin HEAD:master --force

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

You can’t perform that action at this time.