This file contains hidden or 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
| # ----------------- mod looper ----------------- # | |
| kc=nil | |
| t=0.15 | |
| vab='0123456789abcdefghijklmnopqrstuvwxyz' | |
| mz=[] | |
| # 10 tracks | |
| 10.times do | |
| mz.append({'q'=>'....', 'o'=>'60', 'v'=>'t', 'mute'=>'n', 'sy'=>"mod_fm", | |
| 'mw'=>'0', 'mp'=>'1', 'mr'=>'2', | |
| 'dv'=>'2', 'dp'=>'2', 'co'=>'p', 'dt'=>'0', |
This file contains hidden or 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
| kc=nil | |
| t=0.16 | |
| vab='0123456789abcdefghijklmnopqrstuvwxyz' | |
| mz=[] | |
| # 10 tracks | |
| 10.times do | |
| mz.append({'q'=>'....', 'o'=>60, 'v'=>'t', 'mute'=>false, 'sy'=>:mod_fm, | |
| 'mw'=>'....', 'mp'=>'....', 'mr'=>'....', | |
| 'dv'=>'2', 'dp'=>'2', | |
| 'a'=>'1', 'd'=>'1', 's'=>'1', 'r'=>'1'}) |
This file contains hidden or 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
| kc=nil | |
| vab='0123456789abcdefghijklmnopqrstuvwxyz' | |
| mz=[] | |
| pz=[] | |
| # 10 tracks each for melody and samples | |
| 10.times do | |
| mz.append({'q'=>'....', 'o'=>60, 'sy'=>:beep, 'v'=>'tttt', 'a'=>'1111', 'r'=>'1111', 'mute'=>false}) | |
| pz.append({'q'=>'....', 'v'=>'mmmm', 'mute'=>false}) | |
| end | |
| ctr=0 |
This file contains hidden or 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 time | |
| # number chart | |
| zero = [ | |
| [' ', '_', '_', ' '], | |
| ['|', ' ', ' ', '|'], | |
| ['|', '_', '_', '|'], | |
| [' ', ' ', ' ', ' '] | |
| ] |
This file contains hidden or 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 java.io.Console; | |
| public class arrays00 { | |
| public static void main(String[] args) { | |
| int[] a = new int[] { 11, 55, 73, 29 }; | |
| int i = 0; | |
| while(i < a.length) { | |
| System.out.println(a[i]); | |
| i++; | |
| } |
This file contains hidden or 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 { useState } from 'react'; | |
| import './App.css'; | |
| function App() { | |
| const [skey, setSkey] = useState(''); | |
| const [links, setLinks] = useState([]); | |
| return ( | |
| <div> | |
| <h1>hello react</h1> |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>frontend</title> | |
| <style> | |
| table { | |
| border-collapse: collapse; | |
| } | |
| tr, td { | |
| border: 1px solid darkgreen; | |
| } |
This file contains hidden or 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
| const express = require('express'); | |
| const app = express(); | |
| const port = 3000; | |
| let kvs = [ | |
| { | |
| ccode: 'JS101', | |
| cname: 'javascript fundamentals' | |
| }, | |
| { |
This file contains hidden or 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
| const http = require('http'); | |
| const httpProxy = require('http-proxy'); | |
| const proxy = httpProxy.createProxyServer({}); | |
| const apisrv = '127.0.0.1:8080'; | |
| const port = 3000; | |
| console.log(`[proxy] 127.0.0.1:${port} -> ${apisrv}`); | |
| http.createServer( | |
| function(req, res) { |