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
( | |
// Global setup: define scale and state for the melody generator | |
~scaleDegrees = [0, 2, 4, 5, 7, 9, 11, 12, 14, 16, 17, 19, 21, 23]; | |
~root = 60; | |
~currentIndex = 7; | |
// Synth Definitions | |
SynthDef(\lead, { |freq=440, amp=0.1, sustain=1, pan=0| | |
var env = EnvGen.kr(Env.linen(attackTime: 0.01, sustainTime: sustain, releaseTime: 0.3), doneAction: 2); | |
var osc = SinOsc.ar(freq) + SinOsc.ar(freq * 1.01); |
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
// FM Bell Synth – An FM-based bell tone with a delicate shimmer. | |
SynthDef(\fmBell, { |out=0, freq=440, amp=0.3, pan=0, modIndex=2, carrierRatio=1, modRatio=2, attack=0.01, release=3| | |
var env = EnvGen.kr(Env.perc(attack, release), doneAction:2); | |
var modulator = SinOsc.ar(freq * modRatio, 0, freq * modIndex); | |
var carrier = SinOsc.ar(freq * carrierRatio + modulator, 0); | |
carrier = FreeVerb.ar(carrier, mix:0.2, room:0.6, damp:0.4); | |
Out.ar(out, Pan2.ar(carrier * env * amp, pan)); | |
}).add; | |
// Ambient Chime Synth Definition (ensure this is loaded) |
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
➜ babyagi git:(main) python3.9 babyagi.py | |
*****OBJECTIVE***** | |
I have been given no context other than I am an agent existing in a universe. Why am I here? I do not know. I must discover my own objective. | |
Initial task: Begin | |
*****TASK LIST***** |
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
#!/bin/bash | |
# | |
################################################################################ | |
## Script to merge multiple git repositories into a new repository | |
## - The new repository will contain a folder for every merged repository | |
## - The script adds remotes for every project and then merges in every branch | |
## and tag. These are renamed to have the origin project name as a prefix | |
## | |
## Usage: mergeGitRepositories.sh <new_project> <my_repo_urls.lst> | |
## - where <new_project> is the name of the new project to create |
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
Chris Dzoba |
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
for (let i in getEventListeners(document)) { | |
let eventsByType = getEventListeners(document)[i]; | |
eventsByType.forEach((event) => { | |
document.removeEventListener(i, event.listener) | |
}) | |
} |
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
<FormControl componentClass="select" multiple value="['other1', 'other2']"> | |
<option value="other1">other1</option> | |
<option value="other2">other2</option> | |
<option value="other3">other3</option> | |
<option value="other4">other4</option> | |
<option value="other5">other5</option> | |
</FormControl> |
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
➜ blah2 git:(master) ✗ reapp run | |
Your app is running on http://localhost:3010 | |
Building with Webpack... | |
Autoprefixer's process() method is deprecated and will removed in next major release. Use postcss([autoprefixer]).process() instead | |
Hash: e7a0ecca8234160f7032 | |
Version: webpack 1.13.0 | |
Time: 3023ms | |
Asset Size Chunks Chunk Names | |
main.js 2.79 MB 0 [emitted] main |
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
sub Main() | |
mport = CreateObject("roMessagePort") | |
roUrlTransfer = CreateObject("roUrlTransfer") | |
roUrlTransfer.AddHeader("Authorization", "Basic <BASE 64 ENCODED SEGMENT WRITE KEY>") | |
roUrlTransfer.AddHeader("Accept", "application/json") | |
roUrlTransfer.AddHeader("Content-Type", "application/json") | |
roUrlTransfer.EnablePeerVerification(false) | |
roUrlTransfer.EnableHostVerification(false) |
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
// 1) Install this plugin: | |
// https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija/related?hl=en | |
// 2) Go to this page: | |
// https://my.slack.com/archives/general | |
// 3) Use this code: | |
setTimeout(function() { | |
$('.moscow_red.cursor_pointer').click() |
NewerOlder