Skip to content

Instantly share code, notes, and snippets.

View ledmonster's full-sized avatar
🤖

Junya Hayashi ledmonster

🤖
View GitHub Profile
@lynas
lynas / ankoFragment.java
Last active February 18, 2019 15:38
android fragment using anko
class MyFragment: Fragment(){
override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? {
return UI {
linearLayout{
editText()
button("OK")
}
}.view
}
}
@voluntas
voluntas / eval.rst
Last active April 8, 2024 03:13
評価制度の無い評価制度
@msund
msund / Graphing
Last active June 6, 2016 12:08
All of 'em
{
"metadata": {
"name": "Three new matplotlib plots"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@j5ik2o
j5ik2o / diet.md
Last active January 11, 2024 13:22

僕が実践した糖質制限の方法を下記に記します。ご参考までに。

連絡先
twitterはj5ik2o
Facebookもj5ik2o
LINEはj5ik2o
gmailはj5ik2o あっと gmail.com

注意事項:私は医者でも栄養士でもないので、ここに書かれたことは間違っている可能性もあります。ご自分で十分に注意して実践してください。必要なら専門家の指導を受けた方がいいと思います。

@10long
10long / geeknote.el
Created February 17, 2014 03:39
geeknote call inside emacs
;; geeknote ==============================================================
(defun geeknote-mode ()
(interactive)
(eshell-command "python ~/geeknote/geeknote.py settings --editor /Applications/Emacs.app/Contents/MacOS/bin/emacsclient")
)
(defun geeknote-create (newnote)
(interactive "sname: ")
(eshell-command
(format "python ~/geeknote/geeknote.py create --content WRITE --title %s" newnote))

二分木データ構造をScalaで実装する

以下の前提のもと、下記機能を実現する実装を記述せよ。

diagram

  • 木にはブランチ(枝)とリーフ(葉)があるものとする。ブランチとリーフをノードとし、以下の型階層を前提とする。
trait Node {
@sloria
sloria / bobp-python.md
Last active May 12, 2024 06:54
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@j5ik2o
j5ik2o / gist:5288729
Last active February 7, 2016 03:29
IntelliJ IDEA/Eclipse対応 sbt プロジェクトの作成手順

事前準備

Scala & SBT & gitter8

$ brew install scala sbt giter8

IDE

@northface
northface / Suryoka3rui.py
Last active September 27, 2021 08:49
Pythonによる数量化三類プログラム
# coding: UTF-8
#-------------------------------------------------------------------------------
# Name: 数量化3類実行プログラム
# Purpose: 数量化3類をPython Numpyで実行する
# Reference: Excelで学ぶコレスポンデンス分析,高橋信,オーム社,2005
# Author: Takao Aoki
# Created: 2013/01/20
# Copyright: Takao Aoki(c) 2013
# Licence: GNU GPL
# Description: 数量化3類とは、生データの回答者および変数に生データの情報が