Skip to content

Instantly share code, notes, and snippets.

@thinkAmi
thinkAmi / linq2twitter_sample.cs
Created April 25, 2014 21:03
LINQToTwitterライブラリで、ツイートしたり、ツイートを取得するサンプル (WPFでTextBoxとButtonを使ってます)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
@thinkAmi
thinkAmi / Gemfile
Created May 25, 2014 20:14
ActriveLdapのサンプルコード
source 'https://rubygems.org'
gem 'activeldap'
gem 'net-ldap'
@thinkAmi
thinkAmi / Gemfile
Created May 27, 2014 20:55
Ruby + serialport + Sinatra で、シリアルCOMポートから受信したデータを表示するサンプル
source 'https://rubygems.org'
gem 'sinatra'
gem 'sinatra-contrib'
gem 'thin'
gem 'serialport'
@thinkAmi
thinkAmi / TwitterSingleUserAuth.cs
Last active August 29, 2015 14:04
Twitter Single-user Auth sample: Using DotNetOpenAuth and DynamicJson
// Console Applicatoin
// Add library using NuGet
// - DotNetOpenAuth OAuth 1.0(a) Consumer (byAndrew Amott)
// - DynamicJson (by neuecc)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@thinkAmi
thinkAmi / script.user.js
Created January 29, 2012 04:14
Google Light Navbar for Screenshot
// ==UserScript==
// @name Google Light Navbar for Screenshot
// @namespace http://d.hatena.ne.jp/thinkAmi/
// @description Fork Google Light Navbar, main color is black and without cookie
// @author thinkAami
// @version 1.0
// @license MIT License
// @source https://gist.github.com/1697132
// @include http://*.google.*
// @include https://*.google.*
@thinkAmi
thinkAmi / RunMiBarcodeSample.cs
Created July 10, 2012 22:13
MiBarcodeを使いExcel出力するサンプル
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Excel = Microsoft.Office.Interop.Excel;
@thinkAmi
thinkAmi / MBSAtoCSV.cs
Created July 20, 2012 21:07
MBSAのXMLファイルからLINQ to XMLを使ってCSVファイルへと出力するサンプル
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
namespace MBSAToCSV
{
class Program
{
@thinkAmi
thinkAmi / SkypeLogin.cs
Created July 21, 2012 21:59
Skypeを起動してログインするプログラム (ただし、ユーザー名とパスワードが必要)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace SkypeLogin
@thinkAmi
thinkAmi / ApplicationIDConverter.py
Created October 30, 2012 21:31
GAEのソースコードをGitHubで公開するときに、applicatoinを削除するコード
# -*- coding: utf-8 -*-
import sys
import yaml
from collections import OrderedDict
# OrderedDictを出力するための関数
def represent_odict(dumper, instance):
return dumper.represent_mapping(u'tag:yaml.org,2002:map', instance.items())
@thinkAmi
thinkAmi / BloggerAPI.html
Created November 11, 2012 21:26
Google Blogger API の使い方例
<!DOCTYPE html>
<html lang="ja">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" >
<script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script src="https://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8" src="W3CDTF.js"></script>
<script type="text/javascript">
var blogId = "20042392";