Skip to content

Instantly share code, notes, and snippets.

View jiserra's full-sized avatar

Juan Ignacio Serra jiserra

View GitHub Profile
@jiserra
jiserra / install-scripts.sh
Last active August 31, 2021 20:32
Install Script for Raycast
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Install Script Command
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🛠️
# @raycast.packageName Raycast
@jiserra
jiserra / Recycling.js
Created September 20, 2020 04:38
Scriptable widget for recycling days in NYC
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: green; icon-glyph: trash;
// This is the ID for your collection zone. I explain how to obtain this in the other recycling-data.md gist
let FID = REPLACE THIS WITH YOUR FID;
Date.prototype.addDays = function(days) {
var date = new Date(this.valueOf());
date.setDate(date.getDate() + days);
@jiserra
jiserra / sendsms.php
Created May 6, 2017 01:11 — forked from javierwilson/sendsms.php
Send Bulk SMS using Twilio
<?php
require('Services/Twilio.php');
$sid = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$from = "5555555555";
require('config.php');
#+555555555555,Alice Smith,CT
#+555555555555,Bob Rodriguez,LTO 01A

Keybase proof

I hereby claim:

  • I am jiserra on github.
  • I am jiserra (https://keybase.io/jiserra) on keybase.
  • I have a public key ASBWM72horQTk-4nW7tP07GGBkoJw8Zj5ZeI9Yh71n0gOAo

To claim this, I am signing this object:

.boton {
display: block;
background-image: url('imagen1.png');
width: 200px;
height: 40px;
}
.boton:hover {
background-image: url('imagen2.png');
}
@jiserra
jiserra / 0_reuse_code.js
Created May 26, 2014 14:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jiserra
jiserra / carta-abierta-campanella
Last active August 29, 2015 13:57
Carta abierta a Juan José Campanella
Estimado Juan,
Siempre lo admiré por su trabajo y probablemente lo siga haciendo. Creo que la calidad de sus obras es indiscutible y siempre que pude, las fui a ver al cine.
Hoy me sentí defraudado e indignado. Jamás en mi vida [me habían tratado de ladrón](https://twitter.com/juancampanella/status/444782254980874241) con la liviandad que usted lo hizo, jamás. Debo aclararle que la honradez me la enseñó mi padre y el haber dicho lo que dijo no sólo me ofendió a mi, si no que me entristeció por querer manchar uno de los mejores legados que me dejó mi padre, mi educación como persona íntegra.
Yendo a la parte estrictamente de la discusión que usted tan abruptamente (y maleducadamente) terminó: [copiar no es robar](http://editorialorsai.com/revista/post/n2_bravo); generar lucro con el trabajo de otros **si esta mal** y es absolutamente condenable.
El caso de Popcorn Time no fue esto último, jamás hubo ánimo de lucro, jamás se le cobró a nadie ni hubo publicidad, y se formó una comunidad de mucha gente alred

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@jiserra
jiserra / SassMeister-input.scss
Created August 12, 2013 19:48
Generated by SassMeister.com.
// ----
// Sass (v3.2.10)
// Compass (v0.13.alpha.4)
// Compass (v0.13.alpha.4)
// ----
$support-for-original-webkit-gradients: false;
$legacy-support-for-mozilla: false;
$experimental-support-for-opera: false;
$base_font_size: 16px;
@mixin rem($property, $px_values) {
$baseline_rem: ($base_font_size / 1rem);
#{$property}: $px_values;
@if type-of($px_values) == 'number' {
#{$property}: $px_values / $baseline_rem;
}
@else {