Skip to content

Instantly share code, notes, and snippets.

View n0f3's full-sized avatar
👋

Alessandro Metta n0f3

👋
View GitHub Profile
@n0f3
n0f3 / Twitch TV helper.markdown
Created February 23, 2016 06:39
Twitch TV helper
@n0f3
n0f3 / codecampsnippets.js
Last active December 2, 2015 02:31
A collection of snippets from freecodecamp for reference
// This is to access the location from the browser.
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
$("#data").html("latitude: " + position.coords.latitude + "<br>longitude: " + position.coords.longitude);
});
}
@n0f3
n0f3 / Preferences.sublime-settings
Created August 18, 2015 18:48
Sublime Text 3 User Settings
{
"font_face": "Input Mono",
"font_size": 12,
"font_options": ["no_round"],
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"translate_tabs_to_spaces": true,
@n0f3
n0f3 / batchRemoteDelete
Created March 11, 2014 00:29
Delete remote branches containing a specific substring in the name
for fstring in $(git for-each-ref --format="%(refname:short)" refs/remotes/origin/f_qa\*); do j=`echo $fstring | cut -d / -f 2`;j=$j;echo $j; done
@n0f3
n0f3 / SidebarController.cs
Created September 20, 2013 00:28
Simple event system to queue and process prioritized events.
using System;
using System.Collections;
using System.Collections.Generic;
public class SidebarController : MonoBehaviour {
private SidebarEventController.GenericSidebarEventArgs currEventProcessed;
private SidebarEventController.SidebarEventID currEventID;
//Determines whether or not a specific sidebar is in view and available to