Skip to content

Instantly share code, notes, and snippets.

Guten tag!

Guten Ye gutenye

Guten tag!
View GitHub Profile
View docker-compose.yml
version: "2"
image: jeshan/bitcore-node
- NETWORK=testnet
#network_mode: host
- './data:/root/bitcoin-node/data'
gutenye / graphql-thinky.js
Last active Oct 19, 2016
View graphql-thinky.js
const GraphQLThinky = require('graphql-thinky').default
const Thinky = require('thinky')
const Fixtures = require('rethinkdb-fixtures')
const { graphql } = require('graphql')
const { makeExecutableSchema } = require('graphql-tools')
global.pd = console.log.bind(console)
// Thinky //{{{1
const DB = 'test'
View footprint.js
* Footprints Configuration
* (config.footprints)
* Footprints are routes that are auto-generated from your model and controller
* definitions in api/controllers and api/models.
* @see
module.exports = {
public class Hello {
public static void main(String[] args) {
HttpURLConnection connection = null;
String data = "{\"jsonrpc\": \"1.0\", \"method\": \"getaccountaddress\", \"params\": [\"a\"] }";
String username = "rpc";
String password = "rpc123";
try {
View server.xml
<?xml version='1.0' encoding='utf-8'?>
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
View flatten.js
#!/usr/bin/env node
// Does not use ES6 Spread operator or any external dependency.
// flatten an array of arbitrarily nested arrays into a flat array.

Keybase proof

I hereby claim:

  • I am gutenye on github.
  • I am gutenye ( on keybase.
  • I have a public key whose fingerprint is 192B 7750 A6D1 437C DE18 EC14 BDE2 D897 FD33 7D66

To claim this, I am signing this object:

gutenye /
Last active Aug 29, 2015
ember basic
App.IndexRoute = Ember.Route.extend({
  model: function() {
    return Ember.Object.create({name: 1})
  setupController: function(controller, model) {        // 他省略了setupController
    controller.set('model', model)                     // 这里的model就是上面的 Ember.Object.create({name: 1})
    controller.set('age', 2)                           // 模板里面 {{age}}
View gist:9801880
<!DOCTYPE html>
<meta charset=utf-8 />
<title>Ember Hello</title>
<script src=""></script>
<script src=""></script>
View a.html
<!DOCTYPE html>
<meta charset=utf-8 />
<title>Ember Hello</title>
<script src=""></script>
<script src=""></script>
<script src=""></script>