Skip to content

Instantly share code, notes, and snippets.

View lucasromerodb's full-sized avatar
👻
Boo!

Luke ✨ lucasromerodb

👻
Boo!
View GitHub Profile
@Grunerd
Grunerd / LabelFontScaler.gd
Last active October 11, 2023 17:44
LabelFontScaler for Control Node in Godot 4
extends Control
# ensure that you attach this script to the parent node of your ui elements
# ensure that you link the signal "resize" of this control node to this script
#
@export_enum("Horizontal","Vertical") var scaleMode = "Vertical"
# cache for all labels and ther initial font size
@gzomer
gzomer / Grammarly-gDocsCanvasInjectedCs.js
Last active August 30, 2023 14:47
Grammarly-gDocsCanvasInjectedCs - Google Docs Canvas integration
(function () {
Error;
console.log('aca')
function e(t, n, o) {
const r = o();
return t > 0 ? r.catch((r) => new Promise((e, t) => setTimeout(e, n)).then((r) => e(t - 1, n, o))) : r;
}
var t;
!(function (e) {
function t() {
@ariel-diaz
ariel-diaz / ecs.yml
Last active March 10, 2021 18:53
gitlab ci aws ecs
image: docker:19.03.10
services:
- docker:dind
variables:
REPOSITORY_URL: <repository-url>
TASK_DEFINITION_NAME: <task-definition-name>
CLUSTER_NAME: <cluster-name>
SERVICE_NAME: <service-name
@carlssonk
carlssonk / deploy_node_do.md
Last active February 18, 2024 16:38
Deploy node.js app to DigitalOcean

Deploy Node.js Application to DigitalOcean

This step by step tutorial will show you how to set up a Node.js server with MongoDB to DigitalOcean using PM2, NGINX as reverse proxy and a SSL from LetsEncrypt. We will also add a custom domain name.

Prerequisites

Create Droplet & Generate SSH Key

@marcelo-ribeiro
marcelo-ribeiro / javascript-remove-accents.js
Last active May 21, 2023 09:17 — forked from fabiofdsantos/angularJS_removeAccents.js
An Javascript function to remove accents and others characters from an input string.
// Example: https://codepen.io/marcelo-ribeiro/pen/OJmVOyW
const accentsMap = new Map([
["A", "Á|À|Ã|Â|Ä"],
["a", "á|à|ã|â|ä"],
["E", "É|È|Ê|Ë"],
["e", "é|è|ê|ë"],
["I", "Í|Ì|Î|Ï"],
["i", "í|ì|î|ï"],
["O", "Ó|Ò|Ô|Õ|Ö"],
@katowulf
katowulf / app.detail.ts
Created November 8, 2016 16:34
AngularFire2 master detail example, uses routing with resolve method, Angular 2 + Firebase
import { Component } from '@angular/core';
import { AngularFire, FirebaseObjectObservable } from 'angularfire2';
import {ActivatedRoute, Params} from "@angular/router";
import {Observer} from "rxjs";
@Component({
selector: 'app-detail',
template: `
<h2>{{book.title}}</h2>
<p>{{book.author}}</p>
@CraigRodrigues
CraigRodrigues / caesar.c
Last active October 1, 2022 02:57
My solution to CS50 pset2 - "Hail, Caesar!"
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
/**
* Caesar.c
* A program that encrypts messages using Caesar’s cipher. Your program must
* accept a single command-line argument: a non-negative integer. Let’s call it
* k for the sake of discussion. If your program is executed without any
/*BEGIN Xbox One Controller Styling*/
.controller.custom{
background: url(http://mrmcpowned.com/gamepad/xbox-assets/base.svgz);
height: 630px;
width: 750px;
margin-left: -375px;
margin-top: -285px;
}
.custom.white{
background: url(http://mrmcpowned.com/gamepad/xbox-assets/base-white.svgz);
@lucasromerodb
lucasromerodb / Auto-Size float boxes
Last active August 29, 2015 14:17
When you add some elements, this auto resize the boxes dividing 100% (width) by amount of this.
HTML Before
<div class="boxes">
<div></div>
<div></div>
<div></div>
</div>
$(document).ready(function(){
var multiBox = $('.boxes div').size();
@trey
trey / happy_git_on_osx.md
Last active February 18, 2024 10:46
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"