Skip to content

Instantly share code, notes, and snippets.

🏦
Guten tag!

Guten Ye gutenye

🏦
Guten tag!
Block or report user

Report or block gutenye

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
View docker-compose.yml
version: "2"
services:
app:
image: jeshan/bitcore-node
environment:
- NETWORK=testnet
#network_mode: host
volumes:
- './data:/root/bitcoin-node/data'
@gutenye
gutenye / graphql-thinky.js
Last active Oct 19, 2016
graphql-thinky.js
View graphql-thinky.js
require('babel-polyfill')
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 http://trailsjs.io/doc/config/footprints
*/
module.exports = {
View Hello.java
import java.net.*;
import java.io.*;
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
http://www.apache.org/licenses/LICENSE-2.0
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.
//
// USAGE
//
View keybase.md

Keybase proof

I hereby claim:

  • I am gutenye on github.
  • I am gutenye (https://keybase.io/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
gutenye / a.md
Last active Aug 29, 2015
ember basic
View a.md
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>
<html>
<head>
<meta charset=utf-8 />
<title>Ember Hello</title>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script>
<script src="http://builds.emberjs.com/tags/v1.4.0/ember.min.js"></script>
View a.html
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Ember Hello</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script>
<script src="http://builds.emberjs.com/tags/v1.4.0/ember.min.js"></script>
</head>
<body>
You can’t perform that action at this time.