さあiBeaconのアプリを作ってみよう! となった時に、一番困るのがiBeaconフォーマットのBluetoothを発信してくれるようなデバイスがパッとないことです。 自分で実装?めんどいな…っていうかiPhone2台も持ってないしなぁ…… aplixやestimoteを買う?金かかるのもなぁ…… というわけで、Macを使った最も簡単にiBeaconの電波を発信する(Advertiseする)方法をまとめたいと思います。 最も簡単に「受信」をしたい場合はこちら! たった4行!最も簡単にiBeaconの電波を「受信」する方法 環境 Bluetooth Low Energy(BLE, Bluetooth4.0)が搭載されたMac製品 Macbook Pro, Macbook Pro Retina, Macbook Airなどなど 最近の製品なら大抵OK node.js v0.10.24 準備
by Toby Ho on 1/23/2014 Hello, and welcome to the first post of Small.js! This post will cover the basics of Component. Component is a frontend Javascript package manager developed by the prolific Tj Holowaychuk. It embodies the philosophy of small modules and is designed to manage assets as well as Javascript. Currently, there exists over 1600 "components". Although there are more popular JS pack
var smartPrivateNpm = require('smart-private-npm'), url = require('url'); // // Configure your private npm. You could load this in from a file // somewhere // var config = { // // Private npm options. // rewrites: require('./config/rewrites'), proxy: { // // This can optionally just be a single url.parsed URL or an array to // cycle through. Optionally you can also have an array of url.parsed urls
Refactoring your JavaScript code with Grasp | Grasp - JavaScript structural search, replace, and refactor という記事では、Grasp を使ったJavaScriptコードのリファクタリングについて書かれています。 この記事は Refactoring your JavaScript code with Grasp | Grasp - JavaScript structural search, replace, and refactor の簡単な紹介です Grasp は JavaScript ASTを元にgrepのような検索、sedのような置換などを行えるコマンドラインツールです。 GraspはNodeで(実際にはLiveScriptで)書かれているツールで npm 経由でインストールできま
npm_lazy A lazy local cache for npm Why? npm can be slow, down or return random errors if you have large deploys npm_lazy caches packages on your local network, making things faster and more predictable If 100 servers request the same package metadata at the same time, npm_lazy makes sure that (at most) only one request goes out to the npm registry. No database to install, replicate or manage. Dat
Grunt 0.4.2 is now available on npm. This release should address a lot of issues for Windows developers, such as pipe-redirection, console output and BOM preservation. Besides a number of bug fixes, we have made a few decisions going forward regarding external dependencies in Grunt. These external libraries are deprecated and should now be required as npm modules: Use glob instead of grunt.file.gl
Node Modules to Rule Them All Published 06 June 2013 First-class parametric modules + NPM = ♥ Years ago I wrote a little post on modules, frameworks and micro-frameworks, and oh boy did the landscape change! Today, if you’re not using NPM and Node modules when writing any JavaScript code, you’re most likely doing it wrong. It doesn’t matter if you’re writing for the Browser, Node or anything else.
シングルページアプリ って知ってますか? 簡単に言うとHTMLページは1つで、あとはCSSとJSで頑張って画面遷移やら何やらWebアプリ作っちゃおうぜっていうものです。私は今から5年ほど前に qooxdoo を使ってバックエンドの管理用UIなシングルページアプリを作ったのですが、当時はそんな概念も浸透しておらず、なかなかに面白いことやっていたなと今になって思うのです。 で、最近「シングルページアプリ作りてぇ」欲が突然高まりまして、なんか良いツール無いかなと探していたところ brunch を見つけました。というのも qooxdoo は重量級過ぎまして決まり事が多い上にページビルドの動作が重く、ちょっと今時ではないのかなと。まぁ昔のことなんでqooxdooの今はわからないですが。それに対して brunch はライブラリ選択の自由度が高くてコンパクトで、いかにもいまどきな感じがします。普通なら
まずあれです、タイトルは盛りました。 実装は3分じゃおわらないよ!! でも公開のための作業は3分くらいで行けるんじゃないかと思います。 作ったものを、公開したくてうずうずしている方は、ぜひ読んでみてください。 [1分目] npmアカウントを作ろう npmの公式ページから なにはともあれ、npmの開発者として登録しましょう。 https://npmjs.org/signup から、「Make it so.」しましょう。 特筆するようなことはないですが、すぐに使うので username password email address は、ちゃんとメモしておきましょう。 npm adduser 登録ができたら、ターミナルからnpm adduserを実行します。 すると、username・password・email addressを聞かれるので、 先ほど作ったアカウントのものを入力します。 これで
// load using import import { glob, globSync, globStream, globStreamSync, Glob } from 'glob' // or using commonjs, that's fine, too const { glob, globSync, globStream, globStreamSync, Glob, } = require('glob') // the main glob() and globSync() resolve/return array of filenames // all js files, but don't look in node_modules const jsfiles = await glob('**/*.js', { ignore: 'node_modules/**' }) // pa
JSHint 1.0.0 is out Anton Kovalyov Feb 27th, 2013 JSHint 1.0.0 is now officially released. You can download it from this website or install via NPM: $ npm install jshint Also, we have a new website with new up-to-date documentation! Check it out and let us know what you think. For full 1.0.0 changelog please see our 1.0.0 RC1 announcement.
// sample data const country = { name: 'Argentina', capital: 'Buenos Aires', independence: new Date(1816, 6, 9), }; // clone country, using dateReviver for Date objects const country2 = JSON.parse(JSON.stringify(country), jsondiffpatch.dateReviver); // make some changes country2.name = 'Republica Argentina'; country2.population = 41324992; delete country2.capital; const delta = jsondiffpatch.diff(
某イベントのためのコードを書くのにHTMLのスクレイピングをやりたいなー、nodeで書くかなー、去年は jsdom で書いたけど今はどうなんだろね、とか調べてたら、どうもこういうあたりのがあるらしい。 jsdom たぶん一番有名で高機能、だけど重い。 node-jquery jQuery読むだけならコレ!みたいな感じ、だけどあんまりアップデートされてないかも。使いかたはいちばんシンプル。 依存関係がちゃんと書かれてなくて、追加で手で xmlhttprequest をインストールしておかないと動かなかった。 cheerio お前ら重い! 俺がjQuery記法を再実装してやる! という男らしいライブラリ。 zombie ブラウザの挙動をシミュレートする的なライブラリ、Mechanizeみたいなやつかな。いまの用途では前段でHTTPレイヤをいじる必要があるので今回は用途に合わない。 sqrape
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く