This file contains 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
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)) |
This file contains 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
'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'); |
This file contains 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
// breakpoints | |
$S: 460px; | |
$M: 768px; | |
$L: 1170px; | |
// media queries | |
@mixin MQ($canvas) { | |
@if $canvas == S { |
This file contains 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
function playChord(events) { | |
for (var i = 0; i < events.length; i += 1) { | |
if (debug) { | |
events[i].trace(); | |
} | |
events[i].send(); | |
} | |
} | |
This file contains 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
/* | |
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 |
This file contains 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
<?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'); |
This file contains 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
// 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; |
This file contains 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
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 = "----- .---- ----- .---- ----- ----- ----- ----- ----- .---- .---- ----- ----- ----- ----- .---- ----- .---- .---- .---- ----- ----- .---- ----- ----- .---- .---- ----- ----- ----- ----- .---- ----- .---- .---- ----- ----- ----- .---- ----- .---- .---- .---- ----- .---- ----- ----- .---- ----- .---- .---- ----- .---- .---- .---- ----- ----- .---- .---- .---- ----- ----- .---- .---- ----- ----- .---- ----- ----- ----- ----- ----- ----- .---- .---- .---- ----- ----- ----- ----- ----- .---- .---- ----- .---- .---- .---- .---- ----- .---- .---- .---- ----- ----- .---- ----- ----- ----- .---- ----- ----- ----- ----- ----- ----- .---- .---- .---- ----- ----- .---- .---- ----- .---- .---- ----- ----- ----- ----- .---- ----- .---- .---- ----- ----- ----- .---- ----- ----- .---- .---- ----- ----- .---- ----- .---- ----- .---- .---- .---- ----- ----- .---- --- |
This file contains 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
________________________________________ | |
< Eu não sou da zoeira não, tá doida? > | |
---------------------------------------- | |
\ ^__^ | |
\ (oo)\_______ | |
(__)\ )\/\ | |
||----w | | |
|| || |
This file contains 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
__________ | |
< isso aí > | |
---------- | |
\ ^__^ | |
\ (oo)\_______ | |
(__)\ )\/\ | |
||----w | | |
|| || |