This file contains 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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
arr := [10]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} | |
for i, v := range arr { | |
fmt.Println(i, &v) |
This file contains 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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
arr := [10]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} | |
parr1 := [10]*int{} | |
parr2 := [10]*int{} |
This file contains 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
{ | |
"jobReference": { | |
"projectId": string, | |
"jobId": string, | |
"location": string | |
}, | |
"configuration": { | |
"load": { | |
"sourceUris": [ | |
string |
This file contains 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
exports.envTest = (req, res) => { | |
const config = { | |
"develop" : { | |
"hoge" : 100, | |
"fuga" : "This is develop" | |
}, | |
"master" : { | |
"hoge" : 200, | |
"fuga" : "This is master" | |
} |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type Profile struct { | |
Name string `json:"name"` | |
Age int `json:"age"` |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
func main() { | |
prof := map[string]interface{}{ | |
"name": "Yamada Tarou", |
This file contains 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
exports.cmdls = (req, res) => { | |
const execSync = require('child_process').execSync; | |
const result = execSync('echo $PATH | tr : \\\\n | xargs ls'); | |
res.send(result.toString()); | |
} |
This file contains 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
\documentclass[11pt,dvipdfmx,b5paper,oneside]{jsbook} | |
\usepackage{graphicx} | |
\usepackage{color} | |
\usepackage{here} | |
\usepackage{framed} | |
\usepackage{tcolorbox} | |
\usepackage{quotchap} | |
\usepackage{pdfpages} | |
\usepackage[hidelinks]{hyperref} |
This file contains 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
#include<algorithm> | |
#include<string> | |
#include<iostream> | |
class Trie{ | |
Trie *next[95]; | |
public : | |
Trie(){ | |
std::fill(next, next + 26, nullptr); | |
} |
This file contains 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
import urllib2 | |
from bs4 import BeautifulSoup | |
import sys | |
import codecs | |
sys.stdout = codecs.getwriter('utf8')(sys.stdout) | |
url = sys.argv[1] | |
html = urllib2.urlopen(url) | |
soup = BeautifulSoup(html, "html.parser") | |
title = soup.find("title") |