Tutorial: Contributing to Racket には、 main-distributionのビルド方法も書かれています。DrRacketIDEなどをビルドする時の参考になります。
- Windows10 64bit
- Build Tools for Visual Studio
この例ではC:\workspace_racket
で作業します。
Tutorial: Contributing to Racket には、 main-distributionのビルド方法も書かれています。DrRacketIDEなどをビルドする時の参考になります。
この例ではC:\workspace_racket
で作業します。
const rnd = (n = 4) => Math.floor(Math.random() * n) | |
class GameScene extends Phaser.Scene { | |
constructor() { | |
super({ key: 'gameScene' }); | |
this.rows = 4; | |
this.cols = 4; | |
this.grid = new Array(4); | |
for (let r = 0; r < this.rows; r++) { | |
this.grid[r] = new Array(4); |
AS=nasm | |
#ASFLAGS=-f elf64 -g | |
ASFLAGS=-f elf -g | |
#LDFLAGS= | |
LDFLAGS=-m elf_i386 | |
LD=ld | |
SOURCES=$(wildcard *.asm) | |
OBJECTS=$(SOURCES:.asm=.o) | |
TARGETS=$(SOURCES:.asm=) |
package main | |
import ( | |
"context" | |
"html/template" | |
"io" | |
"net/http" | |
"encoding/csv" | |
"strings" |
function setup() { | |
createCanvas(500, 500); | |
colorMode(HSB, 255); | |
} | |
function draw() { | |
background(0, 50, 50); | |
var t = frameCount / 5; | |
var t2 = frameCount / 2; |
// https://stackoverflow.com/questions/4856717/javascript-equivalent-of-pythons-zip-function | |
// ex: | |
// zip([[1,2,3],['a','b','c']]) | |
// [[1,'a'],[2, 'b'], [3, 'c']] | |
const zip = rows => rows[0].map((_, c) => rows.map(row => row[c])); | |
function makeCirclePoints(degs, t, offsetX, offsetY) { | |
return degs.map(deg => ({ | |
"x": cos(radians(deg + t)) * 50 + offsetX, | |
"y": sin(radians(deg + t)) * 50 + offsetY, |
(ns study-clojure.core | |
(:require [clojure.java.io :as io]) | |
(:import (java.util Date)) | |
(:gen-class)) | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; UTIL | |
(defn now [] | |
"the dot of 'Date.' means instanciate 'now' in Java. | |
same like (new java.util.Date)" |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
メモ帳起動して、移動 | |
https://gist.github.com/miau/565417 | |
""" | |
import subprocess | |
import time |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
メモ帳起動して、移動 | |
# インストール | |
pip install pywin32 | |
pip install win32gui |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""COMでPythonからExcelを操作する | |
""" | |
import os | |
from win32com.client import Dispatch | |
def main(): |