Skip to content

Instantly share code, notes, and snippets.

View furenku's full-sized avatar

furenku furenku

  • punksnotdev
  • Mexico
View GitHub Profile
(
p = ProxySpace.push(s);
p[\unProxy] = { WhiteNoise.ar * 0.1 };
Tdef(\secuencia, {
inf.do {|i|
@furenku
furenku / clasejs.js
Created June 30, 2018 01:33
clase js
Ejercicio js
- Explicar Qué es AJAX -> cargado dinamico
- menu scrollspy autoscroll
- Calculadora: Closure
calc = (func(){
// privada
@furenku
furenku / historytest.html
Created June 30, 2018 08:31
history test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
@furenku
furenku / entradas.json
Created June 30, 2018 16:52
entradas json
[
{
"title": "Elit et sint eu velit laboris ut culpa irure.",
"image": "http://unsplash.it/400/300?random=0",
"excerpt": "Aliqua irure est magna in do aliquip aliqua. Labore aliqua adipisicing labore ea mollit incididunt nostrud eiusmod incididunt Lorem incididunt consequat. Mollit cupidatat irure culpa adipisicing sunt aute excepteur quis pariatur irure. Ad deserunt dolor fugiat excepteur pariatur anim tempor officia dolor sint eu irure cupidatat. Sit et proident cupidatat mollit consequat reprehenderit commodo exercitation velit. Aliqua occaecat proident excepteur anim id irure labore eiusmod nostrud sint."
},
{
"title": "Officia sint mollit tempor ea enim quis dolore velit id.",
"image": "http://unsplash.it/400/300?random=1",
"excerpt": "Excepteur nulla aliquip sint est laborum commodo duis qui qui sunt. Qui proident minim non sunt. Sint tempor eiusmod occaecat elit cupidatat ad anim consectetur Lorem ad sint dolor dolor ea. Exercitation et aute n
@furenku
furenku / fetch.js
Created June 30, 2018 17:21
fetch sin cache
var fetchHeaders = new Headers();
fetchHeaders.append('pragma', 'no-cache');
fetchHeaders.append('cache-control', 'no-cache');
var fetchInit = {
method: 'GET',
headers: fetchHeaders,
};
fetch('maquetas/article.html', fetchInit)
@furenku
furenku / index.html
Last active June 30, 2018 18:22
todolist
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>LocalStorage</title>
<style>
.tasks ul {
@furenku
furenku / index.html
Last active June 30, 2018 19:20
history markup
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Ejemplo History</title>
<link rel="stylesheet" href="css/styles.css">
</head>
@furenku
furenku / date-text.pipe.ts
Created August 3, 2018 03:19
Angular pipe for changing Date to text format. "n time ago" for past or "in n time" for future
import {Pipe, PipeTransform, NgZone, ChangeDetectorRef, OnDestroy} from "@angular/core";
@Pipe({
name:'dateText',
pure:false
})
export class DateTextPipe implements PipeTransform, OnDestroy {
private timer: number;
constructor(private changeDetectorRef: ChangeDetectorRef, private ngZone: NgZone) {}
transform(value:string) {
this.removeTimer();
@furenku
furenku / ~instrument.scd
Created August 12, 2018 15:39
~instrument.scd

~myCanon .canon //we extract the canon from the data structure that is returned .collect(~instrument.([\dist,\dist,\dist3], amp: 1, repeat: 1)) // we pass each voice into our ~instrument. At this point ~instrument is returning a MakePbind, because it has been partially applied with ([Symbol], Amp, Repeat). This line will return: [Pbind, Pbind, Pbind, Pbind] .do({|pbind| pbind.play});// finally we play each voice

@furenku
furenku / events-view.css
Last active August 15, 2018 18:37
events view
.event {
border: 1px solid black;
background-color: #eee;
}
.events-list {
display: flex;
}