Skip to content

Instantly share code, notes, and snippets.

@joaohcrangel
joaohcrangel / README.md
Created July 15, 2019 05:18 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

if(!function_exists('debug')){
function debug(){
echo "<pre>";
foreach(func_get_args() as $arg){
print_r($arg);
}
echo "</pre>";
}
}
@joaohcrangel
joaohcrangel / NavigatorInfo.php
Last active October 16, 2019 15:04
Mostrar as informações do navegador do usuário usando o PHP.
function navigatorInfo() {
$u_agent = $_SERVER['HTTP_USER_AGENT'];
$bname = 'Unknown';
$platform = 'Unknown';
$version= "";
// First get the platform?
if (preg_match('/Android/i', $u_agent)) {
$platform = 'android';
} elseif (preg_match('/iPhone|Darwin/i', $u_agent)) {
@joaohcrangel
joaohcrangel / select_estados.html
Created February 10, 2020 02:04 — forked from quagliato/select_estados.html
<select> com todos os estados brasileiros
<select id="estado" name="estado">
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espírito Santo</option>
<option value="GO">Goiás</option>
@joaohcrangel
joaohcrangel / horizontal-scroll.css
Last active March 9, 2020 17:57
Horizontal Scroll
.wrap {
display: flex;
justify-content: flex-start;
overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
-moz-overflow-scrolling: touch;
margin: 0;
padding: 0;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hcode CSS 3</title>
<style>
.linear {
display: flex;
background-color: #000000;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hcode Menu</title>
<style>
body {
margin: 0;
width: 100%;
server {
server_name subdomain.domain.com.br;
error_page 500 502 503 504 /custom_50x.html;
location = /custom_50x.html {
root /usr/share/nginx/html;
internal;
}
const getRemaining = (value: number): number =>
value % 11 < 2 ? 0 : 11 - (value % 11);
type CheckSums = [number, number];
const generateCheckSums = (
numbers: Array<number>,
validators: Array<number>
): CheckSums => {
const initialCheckSums: CheckSums = [0, 0];
@joaohcrangel
joaohcrangel / formatCurrency.ts
Created June 3, 2022 20:21
Format number to currency in TypeScript
export function formatCurrency(
initialValue: number,
options?: {
currency?: string;
precision?: number;
locale?: string;
}
): string {
const currencies = {
USD: '$',