title: Introduce Remarks theme: gdg name: inverse layout: true class: inverse
class: center middle
zh-CN: | |
views: | |
pagination: | |
first: "« 首页" | |
last: "末页 »" | |
previous: "‹ 上页" | |
next: "下页 ›" | |
truncate: "…" | |
helpers: | |
page_entries_info: |
inputs = %w[ | |
CollectionSelectInput | |
DateTimeInput | |
FileInput | |
GroupedCollectionSelectInput | |
NumericInput | |
PasswordInput | |
RangeInput | |
StringInput | |
TextInput |
#!/usr/bin/env ruby | |
require 'yaml' | |
require 'fileutils' | |
SOURCE_DIR = '/home/greatghoul/Workspace/greatghoul/blog/content/' | |
TARGET_DIR = '/home/greatghoul/Workspace/blog/_posts/' | |
def parse_file(filename) | |
puts "Parsing #{filename}" |
#!/usr/bin/env python3 | |
# fileencoding=utf-8 | |
''' | |
解压 zip 文件,其中的文件名是 GB18030 编码,但系统是 Unicode 编码 | |
''' | |
import sys | |
import os | |
from gbzip import ZipFile |
inputs = %w[ | |
CollectionSelectInput | |
DateTimeInput | |
FileInput | |
GroupedCollectionSelectInput | |
NumericInput | |
PasswordInput | |
RangeInput | |
StringInput | |
TextInput |
upstream veakupes { | |
server unix:/home/wapech/applications/veakupes/current/tmp/pids/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 8005; | |
server_name _; | |
root /home/wapech/applications/veakupes/current/public; |
class Questionnaire < ActiveRecord::Base | |
include Restorable | |
set_callback :remove, :after, :after_remove | |
private | |
def after_remove | |
self.stop | |
end |
from bs4 import BeautifulSoup | |
import re | |
def count(html): | |
soup = BeautifulSoup(html) | |
total = 0 | |
for node in soup.find_all(True): | |
inner_html = "".join([str(x) for x in node.contents]) | |
if node.name and re.match('^\\s*$', inner_html): |
#!/bin/bash | |
PKG_FILE=site/site-packages.zip | |
install: | |
@echo '-- Install development dependencies' | |
pip install -r requirements-dev.txt | |
@echo '-- Install runtime dependencies' | |
saecloud install -r requirements.txt | |
@echo '-- Package dependencies to site/site-packages.zip' |