Skip to content

Instantly share code, notes, and snippets.

View danielnaranjo's full-sized avatar

Daniel Naranjo danielnaranjo

View GitHub Profile

Angular Universal setup for firebase hosting

1) Install firebase-tools globally

npm i -g firebase-tools

2) Install @angular/platform-server

@tkrotoff
tkrotoff / FrontendFrameworksPopularity.md
Last active November 5, 2025 09:07
Front-end frameworks popularity (React, Vue, Angular and Svelte)
@EddyVerbruggen
EddyVerbruggen / Code.gs
Last active October 3, 2018 19:32
Google Apps Script that adds GitHub repo and PR labels to your Gmail inbox
function processInbox() {
var threads = GmailApp.search("is:unread in:inbox has:nouserlabels from:[email protected] newer_than:1h");
for (var i = 0; i < threads.length; i++) {
var messages = threads[i].getMessages();
for (var j = 0; j < messages.length; j++) {
processMessage(messages[j]);
}
}
@veekram
veekram / read-write-file.js
Created June 1, 2018 11:12
Read Write to file with javascript
/// write to file
var txtFile = "c:/test.txt";
var file = new File(txtFile);
var str = "My string of text";
file.open("w"); // open file with write access
file.writeln("First line of text");
file.writeln("Second line of text " + str);
file.write(str);
file.close();
@dideler
dideler / bot.rb
Last active October 23, 2025 16:33
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@ahmeti
ahmeti / only-number.directive.md
Last active September 18, 2024 02:44
Angular 5 - Only Number Input, Only Number Decimal
@amimaro
amimaro / BulmaToggleModal
Last active July 29, 2024 14:04
Toggle Bulma Modal with Angular 5
Toggle Bulma Modal with Angular 5
@crazyguitar
crazyguitar / docker-swarm.md
Last active November 28, 2018 19:49
docker swarm
@tcoupin
tcoupin / Setup Pgadmin4 docker.md
Last active April 9, 2024 18:01
Setup Pgadmin4 docker

Just run:

curl https://gist.githubusercontent.com/tcoupin/af82bbbf5de516d186c1f2170ae5d0c4/raw/setup.sh | bash

Notes:

  • on close, the container is not close.
  • default email : [email protected], default password admin
  • a volume named "pgadmin" is create to store config
@lennonjesus
lennonjesus / .gitlab-ci.yml
Created December 7, 2017 16:06
Gitlab CI - Build Ionic 3 Project and generates apk files
# Gitlab CI - Build Ionic 3 Project and generates apk files
image: beevelop/ionic:latest
stages:
- deploy
cache:
untracked: true
key: "$CI_PROJECT_ID"
paths: