This file contains hidden or 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
#include "mbed.h" | |
#include "EthernetInterface.h" | |
#include "HTTPClient.h" | |
#include "C12832.h" | |
#include <stdio.h> | |
InterruptIn up(p15); | |
InterruptIn down(p12); | |
InterruptIn left(p13); | |
InterruptIn right(p16); |
This file contains hidden or 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
On error resume next | |
Dim con,strCon,rs | |
strCon = "Provider=OraOLEDB.Oracle;Data Source=XXXXX;User ID=xxx;Password=xxxxx;" | |
Set con = CreateObject("ADODB.Connection") | |
con.Open strCon | |
If Err.Number <> 0 Then | |
WScript.Echo("接続失敗!!") | |
Else |
This file contains hidden or 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"?> | |
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | |
<appSettings> | |
<add key="ktDomain" value="" xdt:Transform="Replace" xdt:Locator="Match(key)"/> | |
<add key="ktAccessId" value="" xdt:Transform="Replace" xdt:Locator="Match(key)"/> | |
<add key="ktAccessPassword" value="" xdt:Transform="Replace" xdt:Locator="Match(key)"/> | |
<add key="ktLoginId" value="" xdt:Transform="Replace" xdt:Locator="Match(key)"/> | |
<add key="ktLoginPassword" value="" xdt:Transform="Replace" xdt:Locator="Match(key)"/> | |
<add key="proxy" value="" xdt:Transform="Replace" xdt:Locator="Match(key)"/> | |
<add key="proxyUser" value="" xdt:Transform="Replace" xdt:Locator="Match(key)"/> |
This file contains hidden or 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
/* | |
* 編集中/作成中の情報を一時保存する。 | |
* 保存:30秒に一回で保存 | |
* 復元:ボタンクリックにより復元。ただ、復元は次回保存前に行う必要あり(つまり30秒以内に復元ボタンを押す) | |
* | |
* 保存にはsessionStorageを使用しているため、ブラウザが対応している必要があります。 | |
* | |
* Licensed under the MIT License | |
*/ | |
(function() { |
This file contains hidden or 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
/* | |
* kintone javaScriptカスタマイズのテンプレート | |
* | |
* Licensed under the MIT License | |
*/ | |
(function() { | |
"use strict"; | |
//リスト一覧表示時(pc) | |
kintone.events.on("app.record.index.show", function(event){ |
This file contains hidden or 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
def print_title(test_case): | |
def wrapper(*args, **kwargs): | |
print("@" + test_case.__name__ + "-------------------------------------------") | |
return test_case(*args, **kwargs) | |
return wrapper |
This file contains hidden or 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
import json | |
class AttributeDict(object): | |
def __init__(self, obj): | |
self.obj = obj | |
def __getstate__(self): | |
return self.obj.items() | |
def __setstate__(self, items): |
This file contains hidden or 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
git config core.fileMode false |
This file contains hidden or 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 random | |
bonjovi = ("ボ","ン","ジョ","ヴィ") | |
bons = [] | |
while "".join(bons[-6:]) != "ジョンボンジョヴィ": | |
bons += [random.choice(bonjovi) for x in range(2 if len(bons) > 0 else 6)] | |
with open("bonjovi.txt", "w") as result: | |
result.write("・".join([ "".join(x) for x in zip(bons[0::2], bons[1::2])])) |
This file contains hidden or 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
import Foundation | |
extension NSDate { | |
var calendar: NSCalendar { | |
return NSCalendar(identifier: NSGregorianCalendar)! | |
} | |
func after(value: Int, calendarUnit:NSCalendarUnit) -> NSDate{ | |
return calendar.dateByAddingUnit(calendarUnit, value: value, toDate: self, options: NSCalendarOptions(0))! | |
} |