Skip to content

Instantly share code, notes, and snippets.

View haroldoramirez's full-sized avatar
🎯
Focusing

Haroldo Ramirez da Nobrega haroldoramirez

🎯
Focusing
View GitHub Profile
@haroldoramirez
haroldoramirez / angular-partial-cache-busting
Created January 30, 2020 21:19 — forked from ecowden/angular-partial-cache-busting
Cache busting for AngularJS partials is easy
/*
* Decide on your cache-busting strategy. In this example, we use the current timestamp, which will
* force a change every time the app is visited, but not every time the partial is loaded within a
* visit. Even better would be to use a hash of the file's contents to ensure that the file is always
* reloaded when the file changes and never reloaded when it isn't.
*/
var cacheBustSuffix = Date.now();
// Optionally, expose the cache busting value as a constant so other parts of your app can use it.
ngModule.constant("cacheBustSuffix", cacheBustSuffix);
@haroldoramirez
haroldoramirez / install_monaco_font.sh
Created July 9, 2019 18:26 — forked from rogerleite/install_monaco_font.sh
Install Monaco font in Linux
#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#TODO: put validation if folder already exists
sudo mkdir ttf-monaco
@haroldoramirez
haroldoramirez / (1) index.html
Created March 19, 2019 19:40 — forked from tanvir002700/(1) index.html
Upload CSV file with Jquery.
<html>
<head>
<title>CSV upload</title>
</head>
<body>
<input type="file" name="filename" id="filename">
<button id="upload">upload</button>
<div class="csv"></div>
@haroldoramirez
haroldoramirez / dump.sql
Created March 16, 2016 17:23 — forked from manfe/dump.sql
Postgres - Estados e Cidades Brasileiras, dados extraídos do site do IBGE - SQL
-- Os dados contidos nesse arquivo foram extraídos do site: http://ibge.gov.br/cidadesat utilizando ruby, nokogiri e expressões regulares.
-- Autor: Mauricio Natanael Ferreira
-- Github: https://github.com/manfe
-- Twitter: @manfe01
-- Email: contato [at] ferreiramauricio [dot] com
-- ***********************************************************************************************************************************************
-- id ...