| hello | world |
| ----- | ----- |
| hello | world |
| hello | world |
| hello | world |
#!/usr/bin/env ruby | |
# | |
# Buffalo WAPM-APG300N / WAPM-AG300Nの設定を自動化するスクリプト | |
# sshでルーターに接続し、 コマンドを実行する。 | |
# | |
require 'net/ssh' | |
host = ARGV[0] # ホスト名 |
# -*- coding:utf-8 -*- | |
import codecs | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('shift_jis') | |
from BeautifulSoup import BeautifulSoup | |
import urllib2 | |
import re | |
class scrape_web: |
# 優先順位は変わらないので、優先順位にそってメッソドを再定義する | |
# メソッドが入れ替わっているので、式内の演算子も置換で入れ替える。 | |
# | |
# ↑優先順位高 | |
# | ビット or | |
# & ビット and | |
# + 加算 | |
# * 乗算 | |
# ↓優先順位低 | |
# |
create ser +same deser +shal +deep total size +dfl | |
kryo 98 1463 1375 1849 1878 2013 3476 233 147 | |
protobuf 193 2649 1305 1388 1449 1666 4315 239 149 | |
thrift 188 2802 2635 1722 1781 1849 4651 349 197 | |
msgpack 102 1652 1558 1758 1998 1921 3573 233 146 | |
msgpack-manual 101 1602 1389 1694 1757 1868 3470 233 146 |
module ActionController | |
module Streaming | |
extend ActiveSupport::Concern | |
protected | |
# Set proper cache control and transfer encoding when streaming | |
def _process_options(options) #:nodoc: | |
super | |
if options[:stream] |
// This systemd runs iptables-restore on boot: | |
[Unit] | |
Description=Packet Filtering Framework | |
DefaultDependencies=no | |
After=systemd-sysctl.service | |
Before=sysinit.target | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/sbin/iptables-restore /opt/docker/scripts/iptables/iptables.rules |
/* | |
* Angular LoadScript | |
* | |
* Let angular load and execute lazy javascript from partials! | |
* | |
* This module is the result of this issue: "1.2.0rc1 regression: script tags not loaded via ngInclude" | |
* Issue url: https://github.com/angular/angular.js/issues/3756 | |
* | |
* As of Angular 1.2.0 the ngInclude scripts does not permit execution of javascript from included partials. | |
* This little module execute code inside script tags with "javascript-lazy" attribute after partial loading, |
<html> | |
<head> | |
<title>Test</title> | |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> | |
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> | |
<script src="http://fb.me/react-0.5.1.js"></script> | |
<script src="http://fb.me/JSXTransformer-0.5.1.js"></script> | |
</head> |
/** | |
* This module is a variant which supports document.write. If you need document.write use this instead | |
* Author: Deepak Subramanian @subudeepak(https://github.com/subudeepak) | |
* Distributed under MIT License | |
*/ | |
/*global angular */ | |
(function (ng) { | |
'use strict'; | |
app.directive('script', function() { | |
return { |