Skip to content

Instantly share code, notes, and snippets.

View edysegura's full-sized avatar
👽
Always learning!

Edy Segura edysegura

👽
Always learning!
View GitHub Profile
{
"onboarding": {
"$contentActions": [
{
"input": {
"bypass": false,
"$cardContent": {
"document": {
"id": "9d471950-53e9-4461-ba75-826b1193ff51",
"type": "text/plain"
@edysegura
edysegura / .zshrc
Last active August 20, 2020 20:45
[WSL and Windows Terminal] Configuration
# curl -L git.io/antigen > "$HOME/antigen.zsh"
source "$HOME/antigen.zsh"
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
antigen bundles <<EOBUNDLES
# Bundles from the default repo (robbyrussell's oh-my-zsh)
git
git-extras
z
docker
@edysegura
edysegura / async-await.js
Last active August 6, 2019 01:45
Promises & Async/Await
const { promisify } = require('util');
const fs = require('fs');
const readFile = promisify(fs.readFile);
const writeFile = promisify(fs.writeFile);
function readData(filename) {
const createMessage = data => ({ filename, data });
return readFile(filename, 'utf-8').then(createMessage);
}
@edysegura
edysegura / .gitconfig
Last active July 11, 2019 14:50
[Git] Awesome git tips
git config --global alias.hist "log --pretty=format:'%C(yellow)%h%Creset %ad | %s%d %Cgreen[%an]%Creset' --graph --date=short"
git config --global core.safecrlf false
@edysegura
edysegura / gist:3fe24be6fa491fd8817573d871018a66
Created March 29, 2018 00:27 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@edysegura
edysegura / random.js
Last active December 19, 2017 18:13
[JS] Random Numbers
console.log((""+Math.random()).substring(2,7))
console.log(Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17));
console.log("id" + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17));
@edysegura
edysegura / .gitconfig
Last active August 22, 2017 22:00
[git] Alias for git usual commands
[core]
editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin
[alias]
feat = checkout feature/iws/buc11bb3
for = push origin HEAD:refs/for/[branch-name] --no-verify
draft = push origin HEAD:refs/drafts/[branch-name] --no-verify
amend = commit --amend --no-edit
dev = checkout dev-temp
bdev = checkout -B dev-temp
hist = log -2
@edysegura
edysegura / angularjs-class.js
Created August 4, 2017 16:20
How to create class in AngularJS
.factory('User', function (Organisation) {
/**
* Constructor, with class name
*/
function User(firstName, lastName, role, organisation) {
// Public properties, assigned to the instance ('this')
this.firstName = firstName;
this.lastName = lastName;
this.role = role;
@edysegura
edysegura / renew-ip.bat
Created January 4, 2017 13:32
[BAT] A simple BAT script to renew your ip
ipconfig /release
Ipconfig /renew
ipconfig /flushdns
ipconfig /flushdns
ipconfig /flushdns
ipconfig /flushdns
ipconfig /flushdns
@edysegura
edysegura / Tampermonkey-script.js
Last active July 11, 2017 03:44
[TRICK] A simple script to fill out univas form
// ==UserScript==
// @name Univas Fill and Save
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://m.univas.edu.br/sistemas/Cad_Planos_Ensino_1.asp
// @grant none
// ==/UserScript==