ソチオリンピックも始まり、スノボなんかが見たかったりもする中。
我が家にはテレビがないので、インターネットで見れないかと思いました。
vipbox
という良いメディアを見つけたは良いのですが、広告が常軌を逸して鬱陶しいため、「どうにかして快適に見る方法を」と作ってみました。
<article> | |
<section> | |
<h2>jsDoc?</h2> | |
<pre class="prettyprint linenums"> | |
<code> | |
/** | |
* @type {Object} | |
*/ | |
var test = {}; | |
var _ = require('lodash'); | |
/* global module:false */ | |
module.exports = function(grunt) { | |
'use strict'; | |
require('load-grunt-tasks')(grunt); | |
grunt.initConfig(_.merge.apply({}, _.values(require('./tasks/def.js')))); | |
grunt.registerTask('personal', function () { |
<!doctype html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>ractive test</title> | |
<meta name="description" content=""> |
var gulp = require('gulp'); | |
var jshint = require('gulp-jshint'); | |
var stylish = require('jshint-stylish'); | |
gulp.task('lint', function() { | |
gulp.src('./js/*.js') | |
.pipe(jshint()) | |
.pipe(jshint('./.jshintrc')) | |
.pipe(jshint.reporter(stylish)); | |
}); |
<?php | |
$ns = array_map(function($ns) { | |
$i = 0; | |
$sum = 0; | |
while ($i < count($ns)): | |
$sum += hexdec($ns[$i]); | |
$i++; | |
endwhile; | |
return dechex($sum); | |
}, [['A','B'], ['A','2B'], ['A','B','C']]); |
bar | |
foo | |
ドイツ人 |
module.exports = function(grunt) { | |
'use strict'; | |
require('time-grunt')(grunt); | |
require('jit-grunt')(grunt); | |
// like a Interface | |
var configObject = require('./grunt/config'); | |
grunt.initConfig({ |
// config.js in ./grunt | |
require('fs').readdirSync('./grunt').forEach(function(file) { | |
if (file !== 'config.js') { | |
module.exports[file.replace('.js', '')] = require('./' + file); | |
} | |
}); |
** Steps **
Steps make up the wercker pipeline and can either be executed in the build or deploy phase within the pipeline.
Hipchat や Idobata、Lingr はもう有ったのですが、 Hall に通知する Step が無かったので、作ってみました。