これは超訳です。
CSSLintは「なんでこんなルールなんだ…」とイラっとすることが多いですけど、それぞれにそれなりに理由があります。まぁ勿論無視するべきなルールとかもあります。例えば見出し要素の再定義禁止とかはHTML5に対するCSSなら無理な話です。そんなわけでどんな理由なのかを簡単に訳しました。無視するかどうかは自分で決めましょう!
この訳はCSSLintと同じライセンスで提供されます。
| #Model | |
| @user.should have(1).error_on(:username) # Checks whether there is an error in username | |
| @user.errors[:username].should include("can't be blank") # check for the error message | |
| #Rendering | |
| response.should render_template(:index) | |
| #Redirecting | |
| response.should redirect_to(movies_path) |
| fizz = function f() { | |
| fizz = function () { | |
| fizz = function () { | |
| fizz = f | |
| return "Fizz" | |
| } | |
| } | |
| } | |
| buzz = function f() { |
| # Visual Studio Code | |
| # https://code.visualstudio.com/Docs/setup | |
| function vsc { | |
| if [[ $# = 0 ]] | |
| then | |
| open -a "Visual Studio Code" | |
| else | |
| local argPath="$1" | |
| [[ $1 = /* ]] && argPath="$1" || argPath="$PWD/${1#./}" | |
| open -a "Visual Studio Code" "$argPath" |
| /** | |
| * ================== angular-ios9-uiwebview.patch.js v1.1.1 ================== | |
| * | |
| * This patch works around iOS9 UIWebView regression that causes infinite digest | |
| * errors in Angular. | |
| * | |
| * The patch can be applied to Angular 1.2.0 – 1.4.5. Newer versions of Angular | |
| * have the workaround baked in. | |
| * | |
| * To apply this patch load/bundle this file with your application and add a |
| // ==UserScript== | |
| // @name Youtube:floating transcript | |
| // @namespace http://efcl.info/ | |
| // @description apply panel floating | |
| // @include https://www.youtube.com/watch?v=* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| // Usage: Open Transcript panel | |
| // -> next transcript |
| export class AwesomeCounter extends HTMLElement { | |
| constructor() { | |
| super(); | |
| this.attachShadow({mode: 'open'}); | |
| this.state = {}; | |
| } | |
| connectedCallback() { | |
| this.setState({count: 0}); |
TypeScript and Playground練習問題集更新情報
WIP