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 | |
from flask import Flask, request | |
from bme280 import BME280 | |
app = Flask(__name__) | |
@app.route('/', methods=["POST"]) | |
def post(): | |
bme280 = BME280() |
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
1 'BME280 sensor | |
10 X=1 | |
20 Y=10 | |
30 Z="example.com" | |
110 GSB@SETUP | |
120 ?"MJ POST START ";STR$(Z) | |
130 ?X | |
140 GSB@CARIB |
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
/// <reference path='../../typings/tsd.d.ts' /> | |
/** | |
* Modal Service | |
* | |
* usage: | |
* MyModal.show('<templateUrl>', '<controllerName> or <controllerName as ..>', <parameters obj>) | |
* .then(function(result) { | |
* // result | |
* }, function(err) { |
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
portal_css = context.portal_css | |
stylesheets = portal_css.getEvaluatedResources(context) | |
for stylesheet in stylesheets: | |
if stylesheet.getRendering() in ['import', 'inline', 'link']: | |
if (not stylesheet.getId().endswith('bootstrap.min.css')) and (not stylesheet.getId().endswith('bootstrap-responsive.min.css')): | |
print portal_css.getInlineResource(stylesheet.getId(), context) | |
duration = 1 | |
seconds = float(duration) * 24.0 * 3600.0 |
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
// | |
// camelize.js | |
// サクラエディタ用マクロ | |
// | |
// アンダーバー区切りの文字列をcamelCaseに変換するマクロです。 | |
// DBのテーブル定義書から、ちょろっとJava等のソースコードを | |
// 作りたいときなど、便利かと思います。 | |
// | |
// NYSL | |
// http://www.kmonos.net/nysl/ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd"> | |
<filesystem> | |
<folder name="Menu"> | |
<folder name="File_hidden"/> | |
<folder name="Edit_hidden"/> | |
<folder name="View_hidden"/> | |
<folder name="GoTo_hidden"/> | |
<folder name="Tools_hidden"/> | |
<folder name="Window_hidden"/> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd"> | |
<filesystem> | |
<folder name="Menu"> | |
<folder name="File_hidden" /> | |
<folder name="Edit_hidden" /> | |
<folder name="View_hidden" /> | |
<folder name="GoTo_hidden" /> | |
<folder name="Tools_hidden" /> | |
<folder name="Window_hidden" /> |
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
Sub A() | |
Dim i As Long | |
For i = 1 To Sheets.Count | |
Dim s As Worksheet | |
Set s = Sheets(i) | |
s.Activate | |
s.Range("A1").Select | |
Next | |
End Sub |
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
#!ruby -Ku | |
#coding: utf-8 | |
# | |
# mdbanalyzer.rb | |
# | |
# なにこれ? | |
# MS-AccessのMDBファイルを解析して適当な相関図を作成します。 | |
# | |
# (ソーステーブル) => (選択クエリ) => (更新系クエリ) => (ディスティネーションテーブル) |
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 info.kinumi.common; | |
import java.util.List; | |
import org.hibernate.Query; | |
import org.hibernate.Session; | |
import com.google.common.base.Joiner; | |
/** |
NewerOlder