Skip to content

Instantly share code, notes, and snippets.

View carlosmolano's full-sized avatar
🇨🇴
Focusing

Carlos A. Molano carlosmolano

🇨🇴
Focusing
View GitHub Profile
@phortuin
phortuin / postgres.md
Last active August 18, 2025 04:04
Set up postgres + database on MacOS (M1)

Based on this blogpost.

Install with Homebrew:

$ brew install postgresql@14

(The version number 14 needs to be explicitly stated. The @ mark designates a version number is specified. If you need an older version of postgres, use postgresql@13, for example.)

@Klerith
Klerith / plugins.md
Last active March 7, 2026 16:34
Flutter: Curso de Flutter - Instalaciones recomendadas

Programas

git config --global user.name "Tu nombre"
git config --global user.email "Tu correo"
<script>
var socket = io();
let vue = new Vue({
el: '#app',
data: {
newMessage: null,
messages: [],
typing: false,
username: null,
function App() {
const [nickname, setNickname] = useState("");
const [email, setEmail] = useState("");
const [joined, setJoined] = useState(false);
const [msg, setMsg] = useState("");
const [messages, setMessages] = useState({});
const chatRoom = db.ref().child('chatrooms').child('global');
useEffect(() => {
/**
* Settings
*/
var settings = {
scripts: true, // Turn on/off script tasks
polyfills: true, // Turn on/off polyfill tasks
styles: false, // Turn on/off style tasks
svgs: false, // Turn on/off SVG tasks
static: false, // Turn on/off static file copying
@imolorhe
imolorhe / pdf2img.html
Created August 13, 2018 09:38 — forked from jdeng/pdf2img.html
pdf to image using pdf.js
<html>
<body>
<script type="text/javascript" src="//mozilla.github.io/pdf.js/build/pdf.js"></script>
<script type="text/javascript">
var url = "https://docs.google.com/document/export?format=pdf&id=1ML11ZyyMpnAr6clIAwWrXD53pQgNR-DppMYwt9XvE6s&token=AC4w5Vg7fSWH1Hq0SgNckx4YCvnGPaScyw%3A1423618416864";
var pages = [], heights = [], width = 0, height = 0, currentPage = 1;
var scale = 1.5;
function draw() {
@carlosmolano
carlosmolano / .block
Created July 12, 2018 19:32 — forked from nbremer/.block
D3.js - Radar Chart or Spider Chart - Adjusted from radar-chart-d3
height: 650
license: mit
$.ajax({
type: "GET",
url: "https://swapi.co/api/people/",
dataType: "json"
}).done(function(data){
console.log(data);
}).fail(function(){
console.log("Error");
}).always(function(){
console.log("Termino");
@julianduque
julianduque / dns.md
Last active May 29, 2018 13:24
DNS Command Line Configuration on macOS

DNS Command Line Configuration on macOS

The following commands work on macOS High Sierra, not tested in previous versions

Get DNS Resolvers

$ scutil --dns | grep 'nameserver\[[0-9]*\]'
@jessedc
jessedc / readme.md
Last active November 7, 2019 17:46
How to Build Laravel Homestead vagrant base box from Source

How to build the Laravel Homestead base box (settler) from source

Sometimes you need the latest updates from Laravel Settler the Homestead base box source.

This assumes you're on macOS and have homebrew, Vagrant and Virtualbox installed.

These instructions are a slighly expanded version of the settler readme

mkdir settler-master