Code Archive Skip to content Google About Google Privacy Terms
key = $key; $this->secret = $secret; $this->callback_url = $callback_url; } function __toString() { return "OAuthConsumer[key=$this->key,secret=$this->secret]"; } } class OAuthToken { // access tokens and request tokens public $key; public $secret; /** * key = the token * secret = the token secret */ function __construct($key, $secret) { $this->key = $key; $this->secret = $secret; } /** * generate
Udon is a library providing basic support for functional programming idioms in JavaScript. Downloads Current version: 1.2.0. Development version Production version 4.5kb packed, 1.0kb gzipped This version adds the following new functions to the library: id, concat, sum, product, elem, notElem, reverse, intersperse and intercalate. Programming with Udon All the functions in this library are namespa
Takayuki Kito hawksnow @ mail2.dnet.gr.jp 2005年 9月 16日 (金) 00:24:18 JST 次の記事 [PHP-dev 1168] Re: ord と chr のマルチバイト文字バージョン 記事の並び順: [ 日付 ] [ スレッド ] [ 件名 ] [ 著者 ] はじめまして。鬼頭と申します。 最近、マルチバイト文字列を処理するスクリプトをいろいろ作ってるのですが、 ord と chr のマルチバイト文字バージョンが標準で用意されていてもよいかも と思ったので提案してみます。 実際に関数を書くと以下のような単純なものなんですけど。 function mb_chr($num){ return ($num < 256) ? chr($num) : mb_chr($num / 256).chr($num % 256); } function
Notable features Support of the Zip64 format Support of WinZIP AES and PKWare ZipCrypto encryption Support of PKWare DEFLATE64 decompression Support of simultaneous reads and writes to one or more zip files Integrated worker pool manager No third-party dependencies This library depends on the Promise, the TypedArray, the Streams APIs and these ones optionally: Web Workers WebAssembly Compression S
Google AnalyticsにはData Export APIというものがあって、これを使うと自分のアカウントのAnalyticsで閲覧できるデータを、プログラムから自由に取得することができます。 » Data Export API – Google Analytics – Google Code このAPIを使ってプログラムを書けば、ブログのエントリーにアクセス数や検索キーワードを表示することも可能。すでにライブラリもあるのでサイトに組み込むのも比較的容易です。 今回は「gapi-google-analytics-php-interface – Project Hosting on Google Code(GAPI)」というPHP用のライブラリを試してみました。 あるページの累計ページビューを取得するサンプル たとえば「あるページの累計ページビューを取得したい」という場合には、以下の
ブラウザなら ブラウザなら <form action="hoge.php" method="post" enctype="multipart/form-data"> <input type="file" name="upfile"> <input type="submit" value="up"> </form> こんな感じで送る操作を実装する。 ▲ ▼ ネットワークのライブラリを新しくする 今回multipartのPOSTをしたいのですが、そのライブラリがSDK同梱のものは古くて対応してないので、ここからダウンロードする HttpComponents - HttpComponents Downloads ここの Binary with dependencies というものを落とす。現在バージョンは HttpClient 4.0.1 念のためURLズバリも貼っておくか↓コレ ht
Sencha Touch Sencha Touch has been merged with Ext JS, which provides developers with everything they need to build data-intensive web apps. Learn More Sencha Touch Has Been Merged with Ext JS Sencha Touch is no longer supported. It’s core functionality for building mobile apps has been merged with Ext JS, which provides everything developers need to build data-intensive, cross-platform web and mo
peterodding.com / code / lua / apr Lua/APR - Apache Portable Runtime binding for Lua Ohloh: Mostly written in C, 12746 lines of code GitHub: Watched by 42 people, most recent update was Wed Dec 07 22:10:34 UTC 2011 Lua/APR is a binding of the Apache Portable Runtime (APR) for the Lua programming language. APR powers software such as the Apache webserver and Subversion and Lua/APR makes the APR ope
お仕事で使うということもあって、携帯でGPSを取得して処理するためのPHPクラスを作りました。 PHPならPEARでもあるくらいのものですが、自分用に作りたかったので一から作ることにしました。 参考にしたのはこちら http://www.phppro.jp/phptips/archives/vol40/2 http://www.yaskey.cside.tv/mapserver/note/gps.html http://www.plusmb.jp/2008/12/26/1934.html まずはキャリアごとに違うGPS機能の使い方を全部同じにする。 今回は<a>での取得のみですが<input>でもできるようです。 function GPS_output_link($url,$link_title){ //携帯GPSリンク取得(キャリアごとのGPS取得リンクを返します。) //引数1 $ur
PHPで作ったゲームサイトでOAuthを利用したので、使い方やサンプルをメモしておきます。 このページ(SDN Project)を参考(というかそのまま)にしていますので、こちらも見てみてください。 OAuthも以前書いたOpenIDと同様に仕組みそのものは難しいのですが、サンプルを見ながら自分なりに変えていけば、それほど難しくなかったりします。 大まかな手順は、以下の通りです。 ①Twitterにアプリケーション登録をする ②OAuthのPHPをダウンロードする ③自分でPHPを書く ④サーバにアップ Twitterにアプリ登録 まず、Twitterに自分のアカウントでログインTwitterのOAuth申請のサイトから、自分のアプリケーション名やサイトのアドレスを登録します。 ・Application Nameは、自分のサービスの名前です。ユーザは認証する際にこのアプリケーション名を確認
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く