This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# See also http://stackoverflow.com/questions/15856976/transactions-with-python-sqlite3 | |
# | |
import sqlite3 | |
sql = sqlite3.connect("/tmp/test.db") | |
print('isolation_level: "{}"'.format(sql.isolation_level)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# | |
# Life Game with a bit tricky generator expressions | |
# | |
# Based on a sample code in Effective Python | |
# See also | |
# https://github.com/bslatkin/effectivepython/blob/master/example_code/item_40.py | |
# Original Copyright notice follows. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# | |
# Microsoft Computer Vision API のデモを | |
# Python 2 / 3 両系統で動作するようにしたもの | |
# | |
# | |
# Usage: python ms_cv_api_exp.py (image_url) | |
# | |
# 参考 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'optparse' | |
require 'ostruct' | |
require 'logger' | |
require 'roo' | |
require 'roo-xls' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Shows SAML attributes that are most related to Gakunin attributes. | |
Each table column (<td>) contains a name attribute inside it, | |
for allowing test scripts to find them more easily. | |
Copyright 2015 mokha Inc. | |
Licensed under the Apache License, Version 2.0 (the "License"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
らんらんらんらんらん♪ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gistnぽぽぽ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
import React from 'react' | |
import $ from 'jquery' | |
import makeCancelable from '../utils/makeCancelable' | |
class GistApp extends React.Component { | |
constructor(props) { | |
super(props); | |
console.log(`source: ${this.props.source}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
console.log("main.js") | |
import _ from 'lodash' | |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
class MyList extends React.Component { | |
constructor(props) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
class MyList extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = {elems: [1, 4, 9]}; | |
} |