Skip to content

Instantly share code, notes, and snippets.

View nicosantangelo's full-sized avatar

Nicolas Santangelo nicosantangelo

View GitHub Profile
@abarmat
abarmat / marketplace-test-checklist.md
Last active August 2, 2019 18:14
Decentraland Marketplace : Test Checklist

Marketplace Test Checklist

Wallet

Connected

  • Show your MANA balance in the navbar
  • Show your MANA balance in the settings page
  • Show your wallet address in the settings page
@menduz
menduz / dcl-roads.json
Created March 14, 2018 16:27
Decentraland roads
["-99,-29","-94,-29","-93,-29","-90,-29","-89,-29","-87,-29","-51,-29","-150,62","-150,61","-150,33","-150,27","-150,0","-150,-20","-50,-29","0,-29","1,-29","15,-29","16,-29","17,-29","18,-29","20,-29","21,-29","-149,-20","22,-29","23,-29","24,-29","25,-29","26,-29","27,-29","28,-29","29,-29","30,-29","33,-29","41,-29","50,-29","51,-29","150,-29","-87,-30","-51,-30","-50,-30","0,-30","1,-30","27,-30","-149,62","-149,61","-149,33","-149,27","-149,0","29,-30","30,-30","31,-30","32,-30","33,-30","34,-30","35,-30","36,-30","37,-30","38,-30","39,-30","40,-30","41,-30","42,-30","43,-30","44,-30","45,-30","46,-30","47,-30","48,-30","49,-30","-148,-70","-148,-74","-148,0","-148,-20","50,-30","51,-30","150,-30","19,-144","20,-144","21,-144","22,-144","72,-144","73,-144","150,-144","-13,-145","0,-145","1,-145","14,-145","-148,62","-148,61","-148,33","-148,27","-148,26","-148,25","-148,24","-147,-70","-87,-31","-51,-31","-50,-31","0,-31","1,-31","20,-31","21,-31","22,-31","23,-31","24,-31","25,-31","26,-31","-147,33","-
javascript:(function(){
if(window.location["href"].match("slack") == null){ return; }
var editIfDblClick = function(){
document.addEventListener('dblclick', function(e){
var target = e.target;
if(target.hasAttribute('class', 'message_body')){
target.closest("ts-message").getElementsByClassName("action_hover_container")[0].querySelector("a[data-action='actions_menu']").click();
document.getElementById("edit_link").click();
}
@ArtFeel
ArtFeel / MGNavigationTransitioningDelegate.h
Last active August 1, 2019 21:23
Simple sliding transitioning for navigation controller mimics pre iOS7 push/pop animations.All you need, is simply set delegate for you navigation controller: self.navigationController.delegate = self.navigationTransitioningDelegate;NavigationController does not retain delegate, so you should hold it. Note: this code is free (http://unlicense.org)
//
// MGNavigationTransitioningDelegate
//
// Created by Philip Vasilchenko on 27.11.13.
//
#import <UIKit/UIKit.h>
@interface MGNavigationTransitioningDelegate : NSObject <UINavigationControllerDelegate>
@nilium
nilium / key-bindings.json
Created August 11, 2012 23:14
A Sublime Text 2 plugin to enable running multiple commands in any given context from a single key binding.
[
{
"keys": ["ctrl+w"],
"command": "run_multiple",
"args": {
"commands": [
{"command": "find_under_expand", "args": null, "context": "window"},
{"command": "show_panel", "args": {"panel": "find"}, "context": "window"}
]
}
class ApplicationController < ActionController::Base
...
#Problem:
#In rails 3.0.1+ it is no longer possible to do this anymore;
# rescue_from ActionController::RoutingError, :with => :render_not_found
#
#The ActionController::RoutingError thrown is not caught by rescue_from.
#The alternative is to to set a catch-all route to catch all unmatched routes and send them to a method which renders an error
#As in http://techoctave.com/c7/posts/36-rails-3-0-rescue-from-routing-error-solution
@rtomayko
rtomayko / optparse-template.rb
Last active June 3, 2023 03:16
Ruby optparse template
#!/usr/bin/env ruby
#/ Usage: <progname> [options]...
#/ How does this script make my life easier?
# ** Tip: use #/ lines to define the --help usage message.
$stderr.sync = true
require 'optparse'
# default options
flag = false
option = "default value"
@endolith
endolith / Has weird right-to-left characters.txt
Last active June 1, 2024 10:58
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
# Copyright (C) 2004 Sam Hocevar
# 14 rue de Plaisance, 75014 Paris, France
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
# as the name is changed.
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE