Skip to content

Instantly share code, notes, and snippets.

@jonasruth
jonasruth / teste
Created February 1, 2012 20:32
Teste
<?php
echo "Olá mundo";
?>
@jonasruth
jonasruth / paises-gentilicos-google-maps.json
Last active October 23, 2024 15:35
JSON com lista de Países em pt-BR e seus respectivos Gentílicos, Siglas e Nome Internacional - Possui todos os países do Google Maps
[ { "gentilico" : "afegãne",
"nome_pais" : "Afeganistão",
"nome_pais_int" : "Afghanistan",
"sigla" : "AF"
},
{ "gentilico" : "sul-africana",
"nome_pais" : "África do Sul",
"nome_pais_int" : "South Africa",
"sigla" : "ZA"
},
<p>Este texto é selecionável</p>
<p unselectable="on" style="-moz-user-select:none;">
Este texto não é selecionável
</p>
<p>This text can be selected</p>
<p unselectable="on" style="-moz-user-select:none;">
This text CAN'T be selected
</p>
@jonasruth
jonasruth / criando-um-lancher-para-uma-aplicação.txt
Last active November 26, 2015 16:20
Criando e editando um lancher para uma aplicação
$ sudo gnome-desktop-item-edit /usr/share/applications/ --create-new
$ sudo gnome-desktop-item-edit /usr/share/applications/NOME_DA_APLICACAO
# OBS: Substitua NOME_DA_APLICACAO pelo nome da aplicação a ser alterada
@jonasruth
jonasruth / url_slug.php
Created November 7, 2016 05:29 — forked from sgmurphy/url_slug.php
URL Slugs in PHP (with UTF-8 and Transliteration Support)
<?php
/**
* Create a web friendly URL slug from a string.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <[email protected]>
* @copyright Copyright 2012 Sean Murphy. All rights reserved.
@jonasruth
jonasruth / Install launcher and docking facility for GNOME.txt
Created December 27, 2018 19:27
[Tutorial criação/edição de lauchers no Ubuntu] Install launcher and docking facility for GNOME
sudo apt-get install --no-install-recommends gnome-panel
@jonasruth
jonasruth / client.js
Created November 14, 2019 04:56 — forked from crtr0/client.js
A simple example of setting-up dynamic "rooms" for socket.io clients to join
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = "abc123";
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
});
@mixin for-size($range) {
$phone-upper-boundary: 600px;
$tablet-portrait-upper-boundary: 900px;
$tablet-landscape-upper-boundary: 1200px;
$desktop-upper-boundary: 1800px;
@if $range == phone-only {
@media (max-width: #{$phone-upper-boundary - 1}) { @content; }
} @else if $range == tablet-portrait-up {
@media (min-width: $phone-upper-boundary) { @content; }