Skip to content

Instantly share code, notes, and snippets.

View ledmonster's full-sized avatar
🤖

Junya Hayashi ledmonster

🤖
View GitHub Profile
@rodbegbie
rodbegbie / facebook.py
Created September 3, 2011 00:15
Hacked version of "official" (but now unsupported) Facebook Python SDK to support OAuth 2.0
#!/usr/bin/env python
#
# Copyright 2010 Facebook
#
# Licensed 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
#
@mdellavo
mdellavo / pyramid-gevent-websocket.py
Created February 3, 2012 05:10
A Pyramid GEvent WebSocket Demo
from gevent import monkey, Greenlet
from gevent.queue import Queue, Empty
from gevent.pywsgi import WSGIServer
import gevent
monkey.patch_all()
from geventwebsocket.handler import WebSocketHandler
from pyramid.config import Configurator
from pyramid.view import view_config
@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類とは、生データの回答者および変数に生データの情報が
@j5ik2o
j5ik2o / gist:5288729
Last active February 7, 2016 03:29
IntelliJ IDEA/Eclipse対応 sbt プロジェクトの作成手順

事前準備

Scala & SBT & gitter8

$ brew install scala sbt giter8

IDE

@sloria
sloria / bobp-python.md
Last active November 14, 2024 15:01
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

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

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

diagram

  • 木にはブランチ(枝)とリーフ(葉)があるものとする。ブランチとリーフをノードとし、以下の型階層を前提とする。
trait Node {
@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))
@j5ik2o
j5ik2o / diet.md
Last active January 11, 2024 13:22

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

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

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

@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": [
{