Skip to content

Instantly share code, notes, and snippets.

View yukpiz's full-sized avatar
🐢
|ω・)و ̑̑༉

yukpiz yukpiz

🐢
|ω・)و ̑̑༉
View GitHub Profile
# -*- coding: utf-8 -*-
import json
import datetime
import csv
import codecs
d = datetime.datetime(2017, 9, 1, 0, 0, 0, 0)
rows = []
while True:

Compile error of Kotlin for Android application.

This type has a constructor, and thus must be initialized here

基底クラスがコンストラクタを持つ場合、それを明示的に呼び出す必要がkotlinではあります。
kotlinではクラスと継承の定義にコンストラクタ定義まで含めることができます。

This type has a constructor and must be initialized here - Kotlin

@yukpiz
yukpiz / compile.sh
Created March 29, 2017 03:19
Build for Android application and library.
#/bin/bash
if [ "${1}" == "app" ]; then
# Build application.
./gradlew clean installDebug >> build.log 2>&1
if [ $? == 0 ]; then
osascript -e 'display notification "Successfully build in Android application🐰 " with title "✅ Android Compile"'
else
osascript -e 'display notification "Failed to build in Android application🐰 " with title "❌ Android Compile"'
fi
@yukpiz
yukpiz / kipi.md
Last active February 3, 2017 00:50

Spec of the kipi bundles.

Lambada Functions

yukpiz/kipi-lambda

  1. Trade Board Crawler
  2. Entry to Twitter
  3. Google Natural Language API

評判用無音楽譜

  • 300文字(ネイル評判クリア)
  • 1:00ジャスト、300文字(イヴォナ評判クリア)
MML@t32r1r1r1r1r1r1r1r1&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&,,;
package main
/*
in>
3
1 2 3
4 6 8
out>
5 6 7
package main
/*
$ cat in
8 3 7 1 2 5 6 0 9 4
decode
0728
> 7240
$ cat in

Technic for GORM

GORMはGo言語の為のORMライブラリです。

Callbacks

gormには特定クエリにおけるフックが用意されています。
クエリの実行前、実行後にこれらのフックを実行する事ができます。

const MonitorTable = React.createClass({
render() {
return <table id="table">
<thead>
<tr>
<th>Account Name</th>
<th>Account Type</th>
<th>Monitor Word</th>
<th>Active</th>
<th><button onClick={this.newRowClick}>Add</button></th>
"use strict";
var gulp = require("gulp"),
fs = require("fs"),
watch = require("gulp-watch"),
plugins = require("gulp-load-plugins")(),
babelify = require("babelify"),
browserify = require("browserify"),
watchify = require("watchify"),
source = require("vinyl-source-stream"),