Skip to content

Instantly share code, notes, and snippets.

@diessica
diessica / A fixed side or corner box.markdown
Created September 3, 2013 04:13
A solution for fixed side/corner box with only HTML/CSS.

A fixed side/corner box

Opened with :hover.

See the result of this example on CodePen.

function verificar() {
var dados = document.getElementById("dados"),
t1 = document.getElementById("t1").value,
t2 = document.getElementById("t2").value,
t3 = document.getElementById("t3").value;
if (t1 == t2 && t2 == t3 && t1 == t3) {
dados.triangulo.value = "Isosceles";
}
@diessica
diessica / CSS-Sine-Waves.markdown
Last active September 5, 2017 04:26
Senoidal curve made with pure CSS.

CSS Sine Waves

Senoidal curve with SASS + HAML. Pure CSS(3).

Available on CodePen

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

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

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 / FizzBuzz.js
Created April 25, 2016 01:09
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)
}
@diessica
diessica / compiler.js
Created May 31, 2016 16:50
Mocha compiler to ignore extensions
/*eslint-disable*/
'use strict'
var babel = require('babel-core/register');
function noop() {
return null;
}
require.extensions['.scss'] = noop;
require.extensions['.css'] = noop;
@diessica
diessica / test-ignore.js
Created November 19, 2016 01:54
require-hacker extensions array
import requireHacker from 'require-hacker'
const extensions = ['css', 'gif', 'jpg', 'svg']
extensions.forEach(type => {
requireHacker.hook(type, () => 'module.exports = ""')
})
import pyaudio
import audioop
import serial
CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
RECORD_SECONDS = 5
@diessica
diessica / arduino.c
Last active February 10, 2018 18:07
arduino + python interface (testing serial)
int PIN = 7;
char message;
void setup() {
Serial.begin(9600);
pinMode(PIN, OUTPUT);
}
void loop() {