View panorama_stitching.cpp
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
#include <iostream> | |
#include <string> | |
#include <stdio.h> | |
#include <cv.h> | |
#include <highgui.h> | |
#include <opencv2/nonfree/nonfree.hpp> | |
#define SQUARE(x) ((x)*(x)) |
View Authentication.xaml.cs
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
/* | |
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; |
View IsolatedStorageiOSTestViewController.cs
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
using System; | |
using System.Drawing; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
using System.IO.IsolatedStorage; | |
using System.IO; | |
namespace IsolatedStorageiOSTest | |
{ |
View create_ipa_download.sh
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
# 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'` |
View starbuckscardbalance.py
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 urllib | |
import re | |
cardno,pin = open('credentials.txt').read().split() | |
# HTML | |
params = urllib.urlencode({'sbCardNumber': cardno, 'pinNumber': pin}) |
View gist:f674bb5010a76f03cc06
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
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 | |
---- |
View Build.cs
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
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.IO; | |
public class BuildScript | |
{ | |
const string kAssetBundlesOutputPath = "AssetBundles"; | |
// アセットバンドル化するフォルダの設置場所 |
View iOSCustomSegmentedControlSwiftUI.swift
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
import SwiftUI | |
extension View { | |
func eraseToAnyView() -> AnyView { | |
AnyView(self) | |
} | |
} | |
struct SizePreferenceKey: PreferenceKey { | |
typealias Value = CGSize |