Skip to content

Instantly share code, notes, and snippets.

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)
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{}
{
"jobReference": {
"projectId": string,
"jobId": string,
"location": string
},
"configuration": {
"load": {
"sourceUris": [
string
exports.envTest = (req, res) => {
const config = {
"develop" : {
"hoge" : 100,
"fuga" : "This is develop"
},
"master" : {
"hoge" : 200,
"fuga" : "This is master"
}
package main
import (
"encoding/json"
"fmt"
)
type Profile struct {
Name string `json:"name"`
Age int `json:"age"`
package main
import (
"encoding/json"
"fmt"
)
func main() {
prof := map[string]interface{}{
"name": "Yamada Tarou",
exports.cmdls = (req, res) => {
const execSync = require('child_process').execSync;
const result = execSync('echo $PATH | tr : \\\\n | xargs ls');
res.send(result.toString());
}
\documentclass[11pt,dvipdfmx,b5paper,oneside]{jsbook}
\usepackage{graphicx}
\usepackage{color}
\usepackage{here}
\usepackage{framed}
\usepackage{tcolorbox}
\usepackage{quotchap}
\usepackage{pdfpages}
\usepackage[hidelinks]{hyperref}
#include<algorithm>
#include<string>
#include<iostream>
class Trie{
Trie *next[95];
public :
Trie(){
std::fill(next, next + 26, nullptr);
}
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")