Skip to content

Instantly share code, notes, and snippets.

View japaz's full-sized avatar
🏠
Tired of ...

Alberto Paz Jimenez japaz

🏠
Tired of ...
View GitHub Profile
@japaz
japaz / cisco.osascript
Last active October 25, 2018 17:35 — forked from ahebrank/cisco.osascript
Automate Cisco AnyConnect VPN client with lastpass on OSX
-- 1. Open Security & Privacy System Preferences, go to Privacy, Accessibility
-- 2. Enable Applescript Editor
-- Usage: <script> gatewayHostName password
-- based on https://gist.github.com/andrewh/7135352 and https://github.com/seanfisk/juniper-network-connect-vpn-applescript/blob/master/juniper.applescript
on run argv
if (count of argv) is not equal to 2 then
return "Usage: <script> gatewayHostName password"
else
@japaz
japaz / Pouring.scala
Last active December 17, 2015 05:49 — forked from yankov/gist:5538283
package week7
class Pouring(capacity: Vector[Int]) {
// States
type State = Vector[Int]
val initialState = capacity map (x => 0)
// Moves
@japaz
japaz / moving_box.html
Created September 26, 2011 20:22 — forked from francisco-perez-sorrosal/moving_box.html
My html containing the moving box Javascript example implemented in class with Carlos Benítez (Madrid, 14/Sep/2011)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
body{background-color:#ccc}
#box{
width:100px;