Skip to content

Instantly share code, notes, and snippets.

View CH3COOH's full-sized avatar
🍣
is my favorite sushi

Kenji Wada CH3COOH

🍣
is my favorite sushi
View GitHub Profile
@ginrou
ginrou / panorama_stitching.cpp
Created July 18, 2012 12:31
パノラマ合成
#include <iostream>
#include <string>
#include <stdio.h>
#include <cv.h>
#include <highgui.h>
#include <opencv2/nonfree/nonfree.hpp>
#define SQUARE(x) ((x)*(x))
@bthubbard
bthubbard / Authentication.xaml.cs
Created October 5, 2012 01:00
Windows 8 Evernote oAuth Example
/*
Quick and dirty code strung together from an Evernote example which used ReactiveOAuth and the MSFT examples.
*/
public sealed partial class Authenication : YourApp.Common.LayoutAwarePage
{
private const string parametersQueryString = @"/oauth?oauth_consumer_key={0}&oauth_signature={1}&oauth_signature_method=PLAINTEXT&oauth_timestamp={2}&oauth_nonce={3}";
private const string callBackUrl = "http://localhost/YouApp";
private const string oAuthToken = "oauth_token";
private string postResponse;
@amay077
amay077 / IsolatedStorageiOSTestViewController.cs
Last active September 8, 2017 10:20
Xamarin.Android/iOS で IsolatedStorage を使う ref: http://qiita.com/amay077/items/672aaf058357a4ecf8a5
using System;
using System.Drawing;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.IO.IsolatedStorage;
using System.IO;
namespace IsolatedStorageiOSTest
{
# set these environment variables
#
# PACKAGE_NAME=my-awesome-app
# BUNDLE_IDENTIFIER=com.example.myapp
# MASTER_JENKINS=http://com.example.jenkins:8080
# LOGO_IMG_URL=http://img.example.com/logo.png
############
DIST_URL=${MASTER_JENKINS}/job/${JOB_NAME}/${BUILD_NUMBER}/artifact
DIST_URL_ESC=`echo $DIST_URL | sed 's/=/%3d/g'`
@yatt
yatt / starbuckscardbalance.py
Last active June 29, 2017 05:37
スターバックスカードの残高確認スクリプト
# coding: utf-8
# スタバカードの残金を取得する。
import urllib
import re
cardno,pin = open('credentials.txt').read().split()
# HTML
params = urllib.urlencode({'sbCardNumber': cardno, 'pinNumber': pin})
@buchizo
buchizo / gist:f674bb5010a76f03cc06
Created August 20, 2014 18:50
Azure Webサイトのフォント一覧(多分)
PS D:\home> [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
PS D:\home> $objFonts = New-Object System.Drawing.Text.InstalledFontCollection
$objFonts.Families
PS D:\home>
Name
----
@marukun318
marukun318 / Build.cs
Created March 6, 2015 07:02
Unity5で選択したファイルにアセットバンドルの名前を自動で付ける
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.IO;
public class BuildScript
{
const string kAssetBundlesOutputPath = "AssetBundles";
// アセットバンドル化するフォルダの設置場所
@frankfka
frankfka / iOSCustomSegmentedControlSwiftUI.swift
Created May 17, 2020 16:47
Custom Segmented Picker / Segmented Control in SwiftUI
import SwiftUI
extension View {
func eraseToAnyView() -> AnyView {
AnyView(self)
}
}
struct SizePreferenceKey: PreferenceKey {
typealias Value = CGSize