This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ArticleGeneratorTest < Minitest::Test | |
BLOG_TEXT = <<EOF | |
* single post | |
:PROPERTIES: | |
:EXPORT_FILE_NAME: demo-article-1 | |
:END: | |
** Today is Friday | |
Friday Line _one_ | |
Friday Line _two_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time ffmpeg -v quiet -y -i 92-.mp4 -vcodec copy -acodec copy -ss 00:00:00 -t 00:10:00 \ | |
-sn test3.mkv -vcodec copy -acodec copy -ss 00:10:00 -t 00:25:47 -sn test4.mkv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Unload the keyboard so I can use my external keyboard | |
# and not worry about accidentally pressing buttons on | |
# the built-in. This may not be a problem for you but, you | |
# should see my desk sometimes (Oh no!!) ;-) | |
sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="columns small-6"> | |
我占一半 | |
</div> | |
<div class="columns small-6"> | |
我也占一半 | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="main"> | |
<div class="brother"> | |
我占一半 | |
</div> | |
<div class="brother"> | |
我也占一半 | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// task | |
gulp.task('minify-html', function () { | |
gulp.src('app/*.html') // path to your files | |
.pipe(minifyHtml()) | |
.pipe(gulp.dest('dist/html')); | |
}); | |
gulp.task('rename', function () { | |
gulp.src('app/scripts/app.coffee') // path to your file | |
.pipe(coffee()) // compile coffeeScript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo gedit /etc/apt/sources.list | |
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse | |
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse | |
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse | |
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# This is a Vagrant configuration file. It can be used to set up and manage | |
# virtual machines on your local system or in the cloud. See http://downloads.vagrantup.com/ | |
# for downloads and installation instructions, and see http://docs.vagrantup.com/v2/ | |
# for more information and configuring and using Vagrant. | |
Vagrant.configure("2") do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--title 用 Ruby 构建碉堡的命令行应用程序 | |
--author 马陆骋(Teddy-Ma@github Teddy@ruby-china) | |
--date today | |
--center <Build Awesome Command Line applications in Ruby2> 读书笔记 | |
--center For absolute beginners | |
--center And some little examples | |
--newpage main | |
--heading Command Line Application |