Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>Ejercicio</title>
</head>
<body>
<div>
<h1>Capitan</h1>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Introduction to Sass</title>
<link href="assets/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<header>
<h1>Sass Sample Document</h1>
/*
Aqui creamos nuestra propia funcion, que divide '100%' entre 'n'
y nos devuelve el resultado
*/
div {
width: 50%;
background-color: #d2d2d2; }
div h1 {
text-align: center;
font: normal 24px/1.5 "Open Sans", sans-serif;
<!DOCTYPE html>
<html>
<head>
<title>SCSS Example</title>
<link rel="stylesheet" href="sass/test.css">
</head>
<body>
<div>
<h1>Lenguajes de programacion</h1>
<ul>
@rubcuadra
rubcuadra / ejemplo.scss
Created June 2, 2017 21:56
SASS example
//Podemos tener diferentes variables
$title-font: normal 24px/1.5 'Open Sans', sans-serif;
$title-red: #F44336;
$item-font: normal 12px/1.5 "Courier New", Courier, monospace;
$item-color: rgb(0,110,255); //rgb es una funcion de SASS
$total-columns: 2;
/*
Aqui creamos nuestra propia funcion, que divide '100%' entre 'n'
y nos devuelve el resultado
*/
@rubcuadra
rubcuadra / TouchBarScreenshots.scpt
Created May 22, 2017 18:07
Apple script for taking touch bar screenshots and after that, creates a .gif, the easiest and closest to a video recorder
property N : 0
repeat 200 times
delay 0.05
set N to N + 1
set picPath to ((POSIX path of (path to desktop)) & "T" & N & ".png") as string
do shell script "screencapture -bx " & quoted form of picPath
end repeat
-- Borrar las que no tienen nada que ver (Touchbar en el cambio)
-- crear gif DragNDrop por orden
@rubcuadra
rubcuadra / song_pi.rb
Created May 16, 2017 17:30
Other song I wrote time ago for a game
use_random_seed 365
i=0
use_bpm 60
#----------------------------------------------------------
phases = [[:D4, :Fs3, :B3, :Fs3],
[:D4, :Gs3, :B3, :Gs3],
[:G4, :B3, :E4, :B3],
[:E4, :A3, :Cs4, :A3],
[:D4, :Fs4, :B3, :Fs4],
[:D4, :Gs4, :B3, :Gs4],
@rubcuadra
rubcuadra / old_pi.rb
Created May 15, 2017 20:37
A simple script I used a year ago, it was part of the soundtrack of a video game I was developing in Unity, this script is for sonic Pi
current_bpm = 140.0
use_bpm current_bpm
# WOBBLE BASS
define :wob do
use_synth :dsaw
lowcut = note(:E1) # ~ 40Hz
highcut = note(:G8) # ~ 3000Hz
note = [40, 41, 28, 28, 28, 27, 25, 35].choose
#Se invoca como rename_extensions old_extension new_extension
#EJ rename_extensions jpg jpeg
#Cambiara la extension de los archivos jpg a jpeg
function rename_extensions
set t 0
if math (count $argv) == 2 #Checar que son 2
for f in (ls)
set fE (string replace -r ".*\." "" -- $f) #ext
set fN (string replace -r "\..*" "" -- $f) #file
@rubcuadra
rubcuadra / pokes.html
Created April 5, 2017 22:06
El html se lo mismo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="">
</head>
<body>