iOS アプリ作りに必要なガイドラインやチュートリアル、リファレンス系は全部「アップルの公式リソース」にある!
ほとんど英語だけど・・・大事なページは日本語に訳されている。
この辺のガイドラインは iOS アプリに限る話じゃなくて、一般的な UI デザインに必要な知識も網羅されているので必須!
/** | |
* Fancy ID generator that creates 20-character string identifiers with the following properties: | |
* | |
* 1. They're based on timestamp so that they sort *after* any existing ids. | |
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
* latter ones will sort after the former ones. We do this by using the previous random bits | |
* but "incrementing" them by 1 (only in the case of a timestamp collision). | |
*/ |
iOS アプリ作りに必要なガイドラインやチュートリアル、リファレンス系は全部「アップルの公式リソース」にある!
ほとんど英語だけど・・・大事なページは日本語に訳されている。
この辺のガイドラインは iOS アプリに限る話じゃなくて、一般的な UI デザインに必要な知識も網羅されているので必須!
参考:デザイナーが確認しておきたい、デザインリソース完全ガイド 2015年度|PhotoshopVIP
インスピレーションの補給や素材探しなどに使う、プロのデザイナーも仕事で良く参考にする素敵なサイト達。
この辺は僕も良く見てるサイト。
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
/* | |
A slightly more automated approach to BEM modifier classes: | |
using '&' parent selector interpolation, modifiers extend their bases, | |
so that HTML markup requires only the modifier class not the base *and* modifier | |
*/ |
$elementSeparator: '__'; | |
$modifierSeparator: '--'; | |
@function containsModifier($selector) { | |
$selector: selectorToString($selector); | |
@if str-index($selector, $modifierSeparator) { | |
@return true; | |
} @else { | |
@return false; | |
} |
/// Block Element | |
/// @access public | |
/// @param {String} $element - Element's name | |
@mixin element($element) { | |
&__#{$element} { | |
@content; | |
} | |
} | |
/// Block Modifier |
var xmpp = require('node-xmpp'); | |
//Set node-xmpp options. | |
//Replace with your projectID in the jid and your API key in the password | |
//The key settings for CCS are the last two to force SSL and Plain SASL auth. | |
var options = { | |
type: 'client', | |
jid: '[email protected]', | |
// jid: '[email protected]', | |
password: 'xxxx', |