Skip to content

Instantly share code, notes, and snippets.

'use strict';
if ((typeof GasTap)==='undefined') {
eval(UrlFetchApp.fetch('https://raw.githubusercontent.com/zixia/gast/master/src/gas-tap-lib.js').getContentText())
}
var test = new GasTap()
function testServerWatchAlert() {
test('Got alive response code', function (t) {
#!/usr/bin/env python
import os
from selenium import webdriver
from pyvirtualdisplay import Display
URL = "https://www.github.com/"
FILENAME = os.path.join(os.path.dirname(os.path.abspath(__file__)), "screen.png")
display = Display(visible=0, size=(1024, 768))
#!/usr/bin/env gosh
(use rfc.ftp)
(define *username* "xxx")
(define *ftp-server* "ftp.xxx.xxx")
(define *client-path* "/xxx/xxx/xxx/xxx.txt")
(define *server-path* "/xxx/xxx/xxx.txt")
(define (main args)
(print "input password:")
#!/usr/bin/env gosh
(use rfc.ftp)
(define *username* "xxx")
(define *ftp-server* "ftp.xxx.xxx")
(define *client-path* "/xxx/xxx/xxx/xxx.txt")
(define *server-path* "/xxx/xxx/xxx.txt")
(define (main args)
(print "input password:")
<?
$record = [
["id" => "1",
"name" => "東京都",
"alias" => "東京",
],
["id" => "2",
"name" => "神奈川県",
"alias" => "神奈川"],
["id" => "3",
package main
import (
"bufio"
"bytes"
"fmt"
"golang.org/x/net/html"
"gopkg.in/xmlpath.v2"
"io"
"log"
package main
import (
"bufio"
"fmt"
"github.com/PuerkitoBio/goquery"
"log"
"os"
"runtime"
"sync"
#!/usr/bin/env python
# coding:utf-8
from __future__ import unicode_literals
from more_itertools import *
from lxml import etree
import codecs
def convert_atom2list(filename):
xml = etree.fromstring(codecs.open(filename, 'rb').read())
@ishideo
ishideo / 0_reuse_code.js
Created October 14, 2016 08:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?xml version="1.0"?>
<root>
<appdef>
<appname>iTERM2</appname>
<equal>com.googlecode.iterm2</equal>
</appdef>
<appdef>
<appname>MACVIM</appname>
<equal>org.vim.MacVim</equal>
</appdef>