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
# coding:utf-8 | |
# PostgreSQL 統計処理用の集約関数 SQL:2006 | |
# https://www.postgresql.jp/document/9.3/html/functions-aggregate.html | |
import unittest | |
import minipg | |
import decimal | |
values_with_null = [ | |
(1, 1), |
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
# coding:utf-8 | |
import unittest | |
import tempfile | |
import firebirdsql | |
class TestStdDev(unittest.TestCase): | |
host='localhost' | |
port=3050 | |
user='sysdba' |
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
# coding:utf-8 | |
import unittest | |
import tempfile | |
import firebirdsql | |
values_with_null = [ | |
(1, 1), | |
(2, 2), | |
(3, 4), |
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
# coding:utf-8 | |
import unittest | |
import tempfile | |
import minipg | |
import firebirdsql | |
class TestCovarSamp(unittest.TestCase): | |
def test_pg(self): | |
connection = minipg.connect( |
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
# coding:utf-8 | |
import unittest | |
import tempfile | |
import firebirdsql | |
values_with_null = [ | |
(1, 1), | |
(2, 2), | |
(3, 4), |
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 python2.7 | |
from __future__ import print_function | |
import datetime | |
import time | |
import paho.mqtt.client as mqtt # https://pypi.python.org/pypi/paho-mqtt/ | |
topic = "foo/bar" | |
if __name__ == '__main__': | |
client = mqtt.Client(protocol=mqtt.MQTTv311) |
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 python2.7 | |
from __future__ import print_function | |
import paho.mqtt.client as mqtt # https://pypi.python.org/pypi/paho-mqtt/ | |
topic = "foo/bar" | |
def on_connect(client, userdata, flags, respons_code): | |
print('connect:status {0}'.format(respons_code)) | |
client.subscribe(topic) |
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 | |
""" | |
Detect CMYK Jpeg under current directory | |
use PIL (or Pillow) | |
""" | |
import os | |
from PIL import Image | |
START_PATH='.' |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type AnyType interface{} | |
func f(a AnyType) AnyType { |
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
// http://golang.org/pkg/container/list/ | |
package main | |
import ( | |
"fmt" | |
"container/list" | |
) | |
func main() { | |
l := list.New() |
OlderNewer