Skip to content

Instantly share code, notes, and snippets.

View manzyun's full-sized avatar
🐄
Returning to society like a ox walking.

TAKAHASHI Hidetsugu manzyun

🐄
Returning to society like a ox walking.
View GitHub Profile
@Ismael-VC
Ismael-VC / api.py
Created May 24, 2015 18:50
API flask
from flask import Flask, render_template, request, url_for
from pandas import DataFrame
from xmltodict import parse
from requests import post as rpost
app = Flask(__name__)
@app.route('/')
def form():
@mcchae
mcchae / rest_api.py
Last active December 8, 2019 16:12
Flask REST API sample
#!/usr/bin/env python
#coding=utf8
##########################################################################################
import os
import logging
import logging.handlers
import traceback
from flask import Flask
from flask.ext.restful import reqparse, abort, Api, Resource
from flask import request
@emilyst
emilyst / fib.rs
Last active January 2, 2016 07:35
Simple Fibonacci algorithm in Rust.
fn main() {
let number = 20;
println(fmt!("%?th fib number is: %?", number, fib(number)));
}
fn fib(x: int) -> int {
match x {
0 | 1 => x,
_ => fib(x - 1) + fib(x - 2),
}
@gothedistance
gothedistance / gist:5243455
Last active October 14, 2022 22:59
Sessionに格納する値が連想配列とオブジェクトのどっちがいいかという話
Dictionary<string,string> dict = new Dictionary<string,string>();
dict.add("name","POSTされた値");
dict.add("address","POSTされた値");
.
.
.
Session["data"] = dict;
//これを取り出す時にはこうなる

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@repeatedly
repeatedly / d_master.md
Last active June 8, 2023 06:20
D言語基礎文法最速マスター

他の言語をある程度知っている人はこれを読めばD言語の基礎をマスターでき,D言語の氷山の一角くらいは知ることができると思います.対象バージョンはdmd 2.059です.

1. 基礎

ソースファイル

ASCIIかUTFしか受け付けません.それ以外の文字コードで書くとコンパイルエラーになります.

main

D言語のmainはCとは違い以下のようなシグネチャです.

@dupuy
dupuy / README.rst
Last active May 5, 2024 18:42
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@sunaot
sunaot / gist:946113
Last active June 12, 2019 10:28
和田省二さんの SQL 講座のメモ書き。文責は sunaot

SQL 講座

SQL

  • SELECT
  • FROM
  • WHERE
  • GROUP BY 句
  • HAVING
  • WINDOW