Skip to content

Instantly share code, notes, and snippets.

🌻
yo

diéssica gurskas diessica

Block or report user

Report or block diessica

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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)
}
View Floating-labels-with-CSS-only.markdown

CSS floating labels

Just an CSS-only experiment that I wanted to share. =) I'm still improving it.

Tested on Google Chrome, Firefox and Opera.

Check out on CodePen.

@diessica
diessica / Installing Opera Next on Ubuntu, Elementary OS.md
Created Nov 13, 2013
How to install Opera Next on Ubuntu, Elementary OS, Pear OS, Linux Mint and other Ubuntu-based distros
View Installing Opera Next on Ubuntu, Elementary OS.md

How to install Opera Next: Ubuntu, Elementary, Pear OS

Works with all Ubuntu-based distros. 12.16.1860 version. Check out latest version reference.

(You must have wget, a free software package for retrieving files using HTTP, HTTPS and FTP. Install: sudo install wget)


32 bits

  1. wget http://deb.opera.com/opera/pool/non-free/o/opera-next/opera-next_12.16.1860_i386.deb
You can’t perform that action at this time.