Skip to content

Instantly share code, notes, and snippets.

View 3265's full-sized avatar

74k35h1 k4n3k0 3265

  • Yoyodyne
  • TARDIS
View GitHub Profile
units = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
teens = ["ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen",
"eighteen", "nineteen"]
tens = ["twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"]
# int -> str
def conv(no):
return eval1000(no)
# int -> ( int, int )
const loadScript = (src, cb) => {
const head = document.getElementsByTagName('head')[0];
const script = document.createElement('script');
script.src = src;
head.appendChild(script);
script.onload = () => {
cb();
};
}
@3265
3265 / watcher_common.py
Created June 15, 2018 05:38
~/go_appengine/google/appengine/tools/devappserver2/
def ignore_file(filename, *args):
"""Report whether a file should not be watched.
Args:
filename: the absolute path to a file.
*args: N number of RegexObject instances to attempt to match with,
absolute paths matching any are skippable.
Returns:
Boolean value, True if the filename can be ignored.

用語

Pod

Containerを入れるための箱

Node

Podを動作させるマシン

Deployment

次のようなことをする

@3265
3265 / 1 data.md
Last active January 11, 2019 14:21
Rails Association
class User < ActiveRecord::Base
  has_many :items
end
  +----+--------+-----+
  | id | name   | age |
  +----+--------+-----+
 | 1 | user01 | 10 |
<!DOCTYPE html>
<html>
<head>
<script src="https://fb.me/react-15.0.1.js"></script>
<script src="https://fb.me/react-dom-15.0.1.js"></script> <script type="text/javascript" src="~/Scripts/myreactfile.jsx"></script>
<meta charset="utf-8">
<title>App</title>
</head>
<body>
<div id="root"></div>
package main
import (
"fmt"
"reflect"
"time"
)
type Base struct {
CreatedBy int64
package main
import (
"fmt"
"reflect"
)
func main() {
type t struct {
N int
package main
import (
"strings"
"github.com/jinzhu/gorm"
uuid "github.com/satori/go.uuid"
)
func getUUIDShort(db *gorm.DB) int64 {
package main
import "fmt"
type Hoge struct {
Age int
}
func do(i interface{}) {
switch v := i.(type) {