Skip to content

Instantly share code, notes, and snippets.

@ustreamer-01647
ustreamer-01647 / MainWindow.xaml
Last active August 29, 2015 14:06
testCoreTweet
<Window x:Class="testCoreTweet.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="431.182" Width="664.773" Closing="Window_Closing">
<Grid>
<Button x:Name="startSettingButton" Content="startSetting" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="99" Click="startSettingButton_Click"/>
<Label Content="Access here:" HorizontalAlignment="Left" Margin="114,10,0,0" VerticalAlignment="Top" Width="88"/>
<TextBox x:Name="pinUritextbox" HorizontalAlignment="Left" Height="23" Margin="207,10,0,0" VerticalAlignment="Top" Width="440"/>
<TextBox x:Name="pinTextbox" HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Margin="67,48,0,0"/>
<Label Content="PIN:" HorizontalAlignment="Left" Margin="10,48,0,0" VerticalAlignment="Top" Width="52"/>
@ustreamer-01647
ustreamer-01647 / MainWindow.xaml
Last active August 29, 2015 14:06
CoreTweet テスト
<Window x:Class="coretweettest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="482.955" Width="669.318">
<Grid>
<Button x:Name="verifyButton" Content="認証開始" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="75" Click="verifystartButton_Click"/>
<Label Content="承認アドレス:" HorizontalAlignment="Left" Margin="107,10,0,0" VerticalAlignment="Top" Width="81"/>
<TextBox x:Name="pinTextbox" HorizontalAlignment="Left" Height="23" Margin="84,52,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" RenderTransformOrigin="0.28,0.555"/>
<Button x:Name="pinVerifyButton" Content="PIN認証" HorizontalAlignment="Left" Margin="221,51,0,0" VerticalAlignment="Top" Width="75" Click="pinButton_Click"/>
<Label x:Name="pinLabel" Content="PIN:" HorizontalAlignment="Left" Margin="15,51,0,0" VerticalAlignment="Top" Width="49"/>
@ustreamer-01647
ustreamer-01647 / twitpicjibiki.php
Last active August 29, 2015 14:06
TwitPic地引き
<?php
// twitter screen_name
define("USERNAME", "paul_ga");
// JSON保存フォルダ
define("JSONDIR", "json/");
// JSON拡張子
define("FILETAIL", ".json");
// APIアドレス
define("URL", "http://api.twitpic.com/2/users/show.json?username=");
/*
Original Information
http://pha22.net/twitterbot/ EasyBotter - プログラミングができなくても作れるTwitter botの作り方
EasyBotterバージョン2.1.3
This product includes PHP, freely available from http://www.php.net/
*/
//発言を作る
function makeTweet($file, $number = FALSE){
@ustreamer-01647
ustreamer-01647 / index.php
Last active August 29, 2015 14:01
codeiq863チケットゴブル社の旅行プランを作れ!
<?php
/**
* https://codeiq.jp/ace/yuki_hiroshi/q863 チケットゴブル社の旅行プランを作れ!
*/
// -------------------------------------------------------
// 設定
// 入力データのエンコーディング
define("INDATA_ENCODING", "SJIS");
// 内部データのエンコーディング
@ustreamer-01647
ustreamer-01647 / index.php
Created May 15, 2014 10:24
codeiq860今週のお題:覆面算を満たす個数
<?php
/**
* https://codeiq.jp/ace/thisweek_masuipeo/q860 今週のお題:覆面算を満たす個数
*/
// 総当たりログを扱うため,大容量メモリを使用させる
// php.ini初期値128M.256Mでも不足した
ini_set('memory_limit', '512M');
// ------------------------
@ustreamer-01647
ustreamer-01647 / index.php
Last active August 29, 2015 14:00
スペーストーキー社の危機を救え!
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
function encode($input) {
/*
Product Version: NetBeans IDE 7.4 (Build 201310111528)
更新: NetBeans IDEはバージョンNetBeans 7.4 Patch 3更新されます
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows 7 version 6.1 running on amd64; MS932; ja_JP (nb)
run:
必要たこ足:60
必要小麦粉:20
ビルド成功(合計時間: 0秒)
@ustreamer-01647
ustreamer-01647 / 0123.html
Last active August 29, 2015 13:58
64パターンがある[0-3]{3}を,a-zA-Z()[]{}<>,./_ をキー値とする連想配列に与える
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<script type="text/javascript">
var code ="0123";
var i = 0;
var codestr= "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ()[]{}<>,./_";
@ustreamer-01647
ustreamer-01647 / myoutput.rb
Last active December 20, 2015 20:48 — forked from taiyoh/myoutput.rb
ツイートごとの区切り線「-----」行を削除
# -*- coding: utf-8 -*-
# my output settings
# 出力方法をこちらで決定する
Earthquake.init do
output :tweet do |item|
next unless item["text"]
info = []