Skip to content

Instantly share code, notes, and snippets.

View waltercruz's full-sized avatar
☸️
meditating

Walter Rodrigo de Sá Cruz waltercruz

☸️
meditating
View GitHub Profile
var gulp = require('gulp');
var sass = require('gulp-sass');
var minifyCSS = require('gulp-minify-css');
var gulpif = require('gulp-if');
var sprity = require('sprity');
gulp.task('styles', function() {
gulp.src('sass/**/*.scss')
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
// .pipe(sass().on('error', sass.logError))
'use strict';
// modules
var assemble = require('fabricator-assemble');
var browserSync = require('browser-sync');
var csso = require('gulp-csso');
var del = require('del');
var gulp = require('gulp');
var gutil = require('gulp-util');
var gulpif = require('gulp-if');
// breakpoints
$S: 460px;
$M: 768px;
$L: 1170px;
// media queries
@mixin MQ($canvas) {
@if $canvas == S {
function playChord(events) {
for (var i = 0; i < events.length; i += 1) {
if (debug) {
events[i].trace();
}
events[i].send();
}
}
/*
With Scripter, you can use JavaScript to create your own custom MIDI processing
effects, including slider controls for real-time interaction.
For detailed information about about using Scripter, including code samples,
see the MIDI plug-ins chapter of the Logic Pro X Instruments or
MainStage 3 Instruments manual.
*/
// example: simple pass through and MIDI monitor
<?php
/**
* Retorna um array com dias da semana no locale pt_BR
* @return array
*/
public function getDayNames($locale = 'pt_BR')
{
$weekDays = array();
$dateTime = new \Datetime('now');
$dateTime = clone $dateTime->modify('Sunday last week');
// Taken from a fellow courserian, Jeff Holtzkener. Beautiful!
// generates two 'melodies' with timing and plays them in a loop, new melodies generate after 8 repeats
// the low melody is half the length of the high one, so it changes twice as often
// 'sporked' so that it does this on two shreds, creating a 'monkey trying to write counterpoint' effect
// try it a few times! - from time to time the result is surpisingly pleasant
// sound network
SinOsc t1 => ADSR e1 => Pan2 p1 => NRev r => dac;
SinOsc t2 => ADSR e2 => Pan2 p2 => r => dac;
chars = {'-----':'0','.----':'1'}
def splitCount(s, count):
return [''.join(x) for x in zip(*[list(s[z::count]) for z in range(count)])]
temp = []
text = "----- .---- ----- .---- ----- ----- ----- ----- ----- .---- .---- ----- ----- ----- ----- .---- ----- .---- .---- .---- ----- ----- .---- ----- ----- .---- .---- ----- ----- ----- ----- .---- ----- .---- .---- ----- ----- ----- .---- ----- .---- .---- .---- ----- .---- ----- ----- .---- ----- .---- .---- ----- .---- .---- .---- ----- ----- .---- .---- .---- ----- ----- .---- .---- ----- ----- .---- ----- ----- ----- ----- ----- ----- .---- .---- .---- ----- ----- ----- ----- ----- .---- .---- ----- .---- .---- .---- .---- ----- .---- .---- .---- ----- ----- .---- ----- ----- ----- .---- ----- ----- ----- ----- ----- ----- .---- .---- .---- ----- ----- .---- .---- ----- .---- .---- ----- ----- ----- ----- .---- ----- .---- .---- ----- ----- ----- .---- ----- ----- .---- .---- ----- ----- .---- ----- .---- ----- .---- .---- .---- ----- ----- .---- ---
________________________________________
< Eu não sou da zoeira não, tá doida? >
----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
__________
< isso aí >
----------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||