Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -e
program="${0##*/}"
localbin="$HOME/.local/bin"
export PYENV_ROOT="$HOME/.pyenv"
if [[ "$1" = "change" ]]; then
/usr/local/Cellar/pyenv/1.2.4/libexec/pyenv global $2;
if [[ "$?" -ne "0" ]]; then
from mininet.log import setLogLevel, info
from mininet.net import Mininet
from mininet.cli import CLI
from mininet.opennet import Pcap
from mininet import ns3
import ns.wifi
def mobile_ip_topo():
# deb cdrom:[Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ubuntu.cs.nctu.edu.tw/ubuntu/ trusty main restricted
deb-src http://ubuntu.cs.nctu.edu.tw/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ubuntu.cs.nctu.edu.tw/ubuntu/ trusty-updates main restricted
from ryu.base import app_manager
from ryu.controller import ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.ofproto import ofproto_v1_3
from ryu.lib.packet import packet
from ryu.lib.packet import ethernet
class SimpleSwitch13(app_manager.RyuApp):
{ "NAME": "全家高雄盛豐店", "TEL": "07-3369275", "px": 120.308065, "py": 22.61262, "addr": "高雄市前鎮區一心二路154號", "SERID": 17238.0, "pkey": "012402", "post": "806", "all": "COFFEE,SWEETPOTATO,WiFi,Rest,twoice", "road": "一心二路", "twoice": "Y" }, { "NAME": "全家高雄二聖店", "TEL": "07-7249692", "px": 120.325224, "py": 22.611796, "addr": "高雄市前鎮區二聖一路67號", "SERID": 17243.0, "pkey": "011731", "post": "806", "all": "COFFEE,WiFi,icecream,Rest", "road": "二聖一路", "twoice": null }, { "NAME": "全家高雄皇家店", "TEL": "07-3318198", "px": 120.310714, "py": 22.606218, "addr": "高雄市前鎮區民權二路76號", "SERID": 17645.0, "pkey": "009298", "post": "806", "all": "COFFEE,SWEETPOTATO,Photo,WiFi,Rest", "road": "民權二路", "twoice": null }, { "NAME": "全家高雄西華店", "TEL": "07-7264629", "px": 120.317293, "py": 22.609803, "addr": "高雄市前鎮區光華二路76號", "SERID": 14328.0, "pkey": "008668", "post": "806", "all": "COFFEE,icecream,Rest,veg", "road": "光華二路", "twoice": null }, { "NAME": "全家高雄展館店", "TEL": "07-5362095", "px": 120.299607, "py": 22.608306, "addr": "高雄市前鎮區成功二路39號", "SERID": 5269
var arr=[0,2,4,9,18,22,27,32,39,42];
var count=0;
var a = document.querySelectorAll("input[type=radio]");
var send = document.querySelectorAll("input[type=submit]");
for(var i = 0; i<a.length; i++)
{
if(i==arr[count])
{
a[i].click();
count++;
#include<stdio.h>
#include<string.h>
int main() {
int flag=0;
char buf[20];
char * point= (char *) &flag;
fprintf(stderr,"How can you write on flag?\n");
fgets(buf,20,stdin);
fprintf(stderr,"Your input is ");
#include<stdio.h>
#include<string.h>
int main() {
int flag=0;
char buf[20];
char * point= (char *) &flag;
fprintf(stderr,"How can you write on flag?\n");
fgets(buf,20,stdin);
fprintf(stderr,"Your input is ");
#include<stdio.h>
#include<string.h>
int main() {
int flag=0;
char buf[20];
char * point= (char *) &flag;
fprintf(stderr,"How can you write on flag?\n");
fgets(buf,20,stdin);
fprintf(stderr,"Your input is ");
#include <iostream>
#include <cstdlib>
#include <stack>
#include <queue>
#define GET_ADDR (node *)malloc(sizeof(node))
#define layer_one(a) (*first[a].ptr)
#define layer_two(a) (*(*first[a].ptr).ptr)
using namespace std;