Code Archive Skip to content Google About Google Privacy Terms
JSDeferredはJavaScriptの非同期処理を扱うライブラリです。 JavaScriptの魅力は非同期処理にあると思いますが、これまでのコーディングスタイルと異なるのでやりづらいと感じる人も多いのではないでしょうか。そこでJavaScriptで同期処理的な実行を可能にするライブラリJSDeferredを使ってみましょう。 サンプルコードです。wait(3)で3秒間処理を停止しています。 サンプルのコードです。 ステップ実行のデモコードです。クリックアクションを受けて処理が実行されます。 Beforeです。ネストが深くなって非常に見づらい、汚いコードです。 Afterです。パラレルを使って平行にデータを読み込みつつ、全てが終わった段階でresultsに結果をまとめて次のメソッドを実行しています。 JSDeferredを使わずに書いている場合に比べて、コードがとても見やすいのが分かる
remote_tableはExcel(XLSXにも対応)、CSV、ODS、XMLなど多様な表計算向けファイルを読み込めるRubyライブラリです。 remote_tableはリモート(またはローカル)にあるExcel、CSVファイルなどを読み込んでシステムで扱えるようにするRubyライブラリです。固定幅長に対応しているのがマニアックでお勧めです。 インストールはRubygemsで簡単インストールです。まずは読み込みます。 リモート(今回はGoogleスプレッドシートのURL)を指定して読み込んでいます。 各行のデータも取り出せます。 2,000行を越えるテーブルの読み込めます。 Excelフォーマットも読み込めます。 remote_tableが対応しているフォーマットは、XLSX、XLS、ODS、HTML、XML、CSVそして固定幅長の表形式のファイルになります。ファイルはリモート、ローカル
概要 MJL (MITSUE-LINKS JavaScript Library)は、ミツエーリンクスで標準利用されるJavaScriptライブラリです。 MJLは弊社内における業務効率を改善するために、統一された設計思想、利便性の向上を念頭においた上で設計・開発されました。 MJLは他のJavaScriptライブラリ群とは異なる設計思想により、独特の特徴を持ちながらも他のライブラリと補完しあえるものを目指しました。 MJLはコピーレフトライセンスであるGNU GPLに基づく自由ソフトウェア(フリーソフトウェア)です。弊社は GNU GPLに則り、本ページにてMJLの全ソースコードを公開します。 ライセンス MJLはGNU GPL Version 3(参考邦訳)のもとに提供されます。 詳細はMJL本体ファイル内のライセンス告知をご覧ください。 ダウンロード MJL本体(圧縮版) mjl.js
A simple, modern, framework-independent, well-tested, unobtrusive, notification system. Utilizes CSS transitions when available, falls back to JS animation when not. Includes mobile support. Select a theme: Click a code sample below to see it in action: humane.log("Welcome Back") humane.log("Record 392 has been updated") humane.log(["List","of","Items"]) humane.log("Callback when finished", functi
kanaxsはJavaScriptとActionScript3で、平仮名とカタカナ、全角と半角文字を相互変換してくれるライブラリです。 kanaxsを使えば平仮名とカタカナ、全角と半角文字を相互変換できます。入力した内容を自動変換したりするのに使えそうです。 これはActionScript3の変換デモです。 全角から半角、半角から全角、カタカナをひらがなに、カタカナから半角カタカナといった具合に変換されています。 こちらはJavaScriptの変換プログラムです。 JavaScriptの場合はこのような形で使います。 kanaxsではtoPaddingCaseとして「は゛」を「ば」に変換してくれるメソッドもあります。日本語入力で役立ちそうです。 kanaxsはNew BSD License、ActionScript3/JavaScript製のオープンソース・ソフトウェアです。 MOONGI
Table of Contents Collections each, map, inject, detect, select, reject, all, any, include, invoke, pluck, max, min, sortBy, sortedIndex, toArray, size Arrays first, last, compact, flatten, without, uniq, intersect, zip, indexOf Functions bind, bindAll, delay, defer, wrap Objects keys, values, extend, clone, isEqual, isElement, isArray, isFunction, isUndefined Utility uniqueId, template Collection
New: lessphp 0.4.0, compiles Bootstrap 3, breaking changes, see Changelog (August 9th 2013) About lessphp is a compiler for LESS written in PHP. The entire compiler comes in a single includable class, but an additional command line interface to the compiler is included. It will run on PHP 5.1+. See the quick start for basic usage. For an overview of the syntax take a look at the lessphp documentat
PHPExcelはExcelファイルの読み書きを行うPHPライブラリ。PDF/HTML出力にも対応。 PHPExcelはPHP製のオープンソース・ソフトウェア。業務システムを開発していて必ず発生するのがExcelのような表形式ファイルの取り込みだ。大抵はCSVに変換してもらって取り込むだろう。だがユーザが変換を忘れてExcelを読み込ませてしまうことも度々だ。 PHPで出力できる さらにシステムから資料を出力する際にもCSVをダウンロードして手作業で修正して…という手間をユーザにとらせることになってしまう。そんな時代はもう古い、PHPExcelを使ってリッチなExcelファイルをそのままやり取りしよう。 PHPExcelはExcel 2007をベースとし、5.0/95/97以降のファイル形式の読み込みにも対応している。Excel 2003のXMLフォーマットも扱える。さらにOpenOffi
Get an email when there's a new version of PHP Simple HTML DOM Parser A simple PHP HTML DOM parser written in PHP5+, supports invalid HTML, and provides a very easy way to find, extract and modify the HTML elements of the dom. jquery like syntax allow sophisticated finding methods for locating the elements you care about.
Terminal Tableは配列をアスキーテキストベースの表組に展開するRubyライブラリ。 Terminal TableはRuby製のオープンソース・ソフトウェア。テキストでヘルプやRRADMEを書くことが多いのだが、その中に表を入れたいと思うことがある。そんな時には罫線を使ってテーブルを書くのだが、枠がずれたりしてなかなか思い通りに作れない。 例 やっとできたと思ったら行を追加しなければならず、その結果全体を修正する羽目になったりすることもある。そんな手間をなくし、テーブルを上手に表現できるのがTerminal Tableだ。 Terminal TableはRubyのirbなどでアスキーによるテーブルを描画するライブラリだ。最初に指定するデータがヘッダーになり、そこからは配列をどんどん追加していけば良い。フッターの前などにセパレータを追加することもできる。 幅も自動調整 各値の長さに
NOTE: This script is obsolete. You should use the far superior CSS3PIE instead. CSS3 support for Internet Explorer 6, 7, and 8 What is it? IE-CSS3 is a script to provide Internet Explorer support for some new styles available in the upcoming CSS3 standard. How it works If you're viewing this page in Internet Explorer, some of the elements have been rebuilt by the script in Vector Markup Language (
Codeigniter is an awesome framework, it’s idea of a parser library that ships with it is not. I have written a simple library that extends Codeigniter’s native view loading to allow you to use Smarty 3 in your Codeigniter projects to render your views. Requirements: Codeigniter 2.0 as this library uses the core and third_party folders, although with some changes it will work with 1.7.2 / 1.7.3 ver
PIE makes Internet Explorer 6-9 capable of rendering several of the most useful CSS3 decoration features. Try the Demo This quick demo shows just a few of the CSS3 properties PIE can render. Use the controls to adjust the CSS3 applied to the box. Load this page in IE to see that it is rendered properly!
Health These insects carry enough bacteria to the cause Ezio Palermo June 30, 2019 5047 Struggling to sell one multi-million dollar home currently on the market won’t stop actress and singer Jennifer Lopez from expanding her property collection. Lopez has reportedly added to her real Health Morning people may have the lower breast cancer risk Ezio Palermo June 30, 2019 5337 Struggling to sell one
Use these options by gem install mysql2 -- [--optionA] [--optionB=argument]. --with-mysql-dir[=/path/to/mysqldir] - Specify the directory where MySQL is installed. The mysql2 gem will not use mysql_config, but will instead look at mysqldir/lib and mysqldir/include for the library and header files. This option is mutually exclusive with --with-mysql-config. --with-mysql-config[=/path/to/mysql_confi
Welcome to MessagePack Wiki Description MessagePack is an efficient object serialization library, MessagePack provides following features: Very compact and fast data format. Rich data structures compatible with JSON. MessagePack-RPC is the remote procedure call system on top of the MessagePack serialization library. It provides following features. Because MessagePack-PRC supports both IDL and the
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く