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
@argentinaluiz
argentinaluiz / README.md
Created August 12, 2020 14:06
VSCode - Guia para configuração do ambiente com Docker
@zahnrodolfo
zahnrodolfo / date-helper.service.spec.ts
Last active January 24, 2019 16:22
In here you have methods to add minutes, hours, days, and years to a date and the unit tests are in the spec file. No need to use external libraries. To use these service just add it to a module then call it.
import { TestBed } from '@angular/core/testing';
import { configModule } from '../../../../test/test.helper.spec';
import { DateHelperService } from './date-helper.service';
describe('Helper Service', () => {
let service: DateHelperService;
const date = new Date(Date.UTC(2019, 0, 9, 12, 25, 2));
@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
@Prophet32j
Prophet32j / jest-mocha-awesome.js
Last active March 15, 2022 17:47
Jest test output to mocha awesome converter
const marge = require('mochawesome-report-generator');
const fs = require('fs');
const path = require('path');
const uuid = require('uuid-v4');
module.exports = (testResults) => {
const margeInput = buildMargeInput(testResults);
marge.create(margeInput)
.then(function() {
@edysegura
edysegura / .bashrc
Last active June 12, 2020 19:46
[Git] Using TortoiseGit in command line
#!/bin/bash
alias git-commit='TortoiseGitProc.exe /command:commit'
alias git-log='TortoiseGitProc.exe /command:log'
alias git-diffall='TortoiseGitProc /command:showcompare /revision1:HEAD~1 /revision2:0000000000000000000000000000000000000000'
# Personal customization
# export PS1="\u@\W $ " # username @ working dir
export PS1="\e[1;32m\u@\e[1;34m\W\e[m $ " # username @ working dir
# export PS1="\e[1;32m$\e[m " # username @ working dir
@btroncone
btroncone / ngrxintro.md
Last active November 5, 2024 12:20
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@learncodeacademy
learncodeacademy / webpack.config.js
Created January 8, 2016 03:55
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
@f3r
f3r / pre-commit
Last active April 8, 2023 10:01
Git pre-commit to validate HTML, CSS and JS
#!/bin/sh
#
# Run validations before commit
#
# - HTML: https://github.com/htacg/tidy-html5
# - CSS: https://github.com/CSSLint/csslint
# - JS: http://jshint.com/docs/cli/
#
# Author: [email protected]
@mikaelbr
mikaelbr / destructuring.js
Last active August 20, 2024 11:27
Complete collection of JavaScript destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
@rxaviers
rxaviers / gist:7360908
Last active November 16, 2024 07:02
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: