Skip to content

Instantly share code, notes, and snippets.

View bvancea's full-sized avatar

Bogdan Vancea bvancea

  • Microsoft
  • Zurich, Switzerland
View GitHub Profile
@bvancea
bvancea / gist:d132f96dd59678bfa317
Created April 8, 2015 19:19
JavaScript basic ideas
//creating an object and adding methods to it
var rabbit = {};
rabbit.speak = function(line) {
console.log("The rabbit says '" + line + "'");
}
rabbit.speak("I'm alive");
//can also add previously defined functions to the objects
@bvancea
bvancea / xdg-open
Created June 4, 2014 09:11 — forked from zosiu/xdg-open
#!/bin/sh
#---------------------------------------------
# xdg-open
#
# Utility script to open a URL in the registered default application.
#
# Refer to the usage() function below for usage.
#
# Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org>
# Copyright 2009-2010, Rex Dieter <rdieter@fedoraproject.org>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.