Skip to content

Instantly share code, notes, and snippets.

Avatar
🌏

diéssica gurskas diessica

🌏
View GitHub Profile
View cb.js
// Your code goes here
window.fetchedProductData = false;
window.PCE_DATA = [
{
url: "/products/komplete/play-series/cloud-supply/",
image:
"https://www.native-instruments.com/typo3temp/pics/img-ce-cloud-supply-01-intro-c5f9a933b121e6e24d7721e70299215d-d.jpg",
background_color: "#1f1433",
View gist:4e64b4897656d2646d57e925ed221b00
void main () {
float frequency = 5.;
vec2 p = uv();
float color = sin( p.y / p.x * time * frequency );
gl_FragColor = vec4( color + 1.,color, 0., 1. );
}
View hack.js
const sendToDiessica = window.alert;
sendToDiessica(document.cookie);
window.alert('sent to diessica\'s account');
document.addEventListener('click', () => {
window.alert('callback for click events too!');
})
View keybase.md

Keybase proof

I hereby claim:

  • I am diessica on github.
  • I am diessica (https://keybase.io/diessica) on keybase.
  • I have a public key whose fingerprint is 4302 C586 30C5 2251 35E4 07A4 449A A724 D631 01B2

To claim this, I am signing this object:

View intensity.py
import pyaudio
import numpy
import array
import serial
import colorsys
import time
from color import convertPercentToColorValue
PORT = '/dev/cu.wchusbserial1430'
HSV_VALUE = 0.7
@diessica
diessica / arduino.c
Last active Feb 10, 2018
arduino + python interface (testing serial)
View arduino.c
int PIN = 7;
char message;
void setup() {
Serial.begin(9600);
pinMode(PIN, OUTPUT);
}
void loop() {
View arduino.py
import pyaudio
import audioop
import serial
CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
RECORD_SECONDS = 5
@diessica
diessica / test-ignore.js
Created Nov 19, 2016
require-hacker extensions array
View test-ignore.js
import requireHacker from 'require-hacker'
const extensions = ['css', 'gif', 'jpg', 'svg']
extensions.forEach(type => {
requireHacker.hook(type, () => 'module.exports = ""')
})
@diessica
diessica / compiler.js
Created May 31, 2016
Mocha compiler to ignore extensions
View compiler.js
/*eslint-disable*/
'use strict'
var babel = require('babel-core/register');
function noop() {
return null;
}
require.extensions['.scss'] = noop;
require.extensions['.css'] = noop;
View FizzBuzz.js
for (var n = 0; n < 100; n++) {
var word = ''
if (n % 3 === 0) word += 'Fizz'
if (n % 5 === 0) word += 'Buzz'
console.log(word || n)
}
You can’t perform that action at this time.