Skip to content

Instantly share code, notes, and snippets.

View hiukky's full-sized avatar
🏝️
~ vacation, back soon!

R o m u l l o hiukky

🏝️
~ vacation, back soon!
View GitHub Profile
@hiukky
hiukky / git.md
Created October 15, 2017 20:54 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@hiukky
hiukky / gist:a6926bdac47835ec17c08ec1d6db2a52
Created October 17, 2017 12:56 — forked from fajrif/gist:1265203
git clone specific tag
git clone <repo-address>
git tag -l
git checkout <tag-name>
git branch -D master
git checkout -b master
@hiukky
hiukky / README-Template.md
Created June 4, 2019 17:17 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

├── app
│   ├── css
│   │   ├── **/*.css
│   ├── favicon.ico
│   ├── images
│   ├── index.html
│   ├── js
│   │   ├── **/*.js
│   └── partials/template
@hiukky
hiukky / outsider.js
Created June 20, 2019 13:57 — forked from fazlurr/outsider.js
React Detect Click Outside Component - https://stackoverflow.com/a/42234988
/**
* Component that alerts if you click outside of it
*/
class OutsideAlerter extends Component {
constructor(props) {
super(props);
this.setWrapperRef = this.setWrapperRef.bind(this);
this.handleClickOutside = this.handleClickOutside.bind(this);
}
@hiukky
hiukky / ID.js
Created June 25, 2019 00:49
ID - a unique ID/name generator for JavaScript
// Generate unique IDs for use as pseudo-private/protected names.
// Similar in concept to
// <http://wiki.ecmascript.org/doku.php?id=strawman:names>.
//
// The goals of this function are twofold:
//
// * Provide a way to generate a string guaranteed to be unique when compared
// to other strings generated by this function.
// * Make the string complex enough that it is highly unlikely to be
// accidentally duplicated by hand (this is key if you're using `ID`
mssql: {
client: 'mssql',
connection: {
host: Env.get('DB_HOST', ''),
port: Env.get('DB_PORT', ''),
user: Env.get('DB_USER', ''),
password: Env.get('DB_PASSWORD', ''),
database: Env.get('DB_DATABASE', ''),
options: {
encrypt: Env.get('DB_ENCRYPT', true)
var cfg = {
authentication: {
type: "default",
options: {
userName: _this.config.user,
password: _this.config.password,
}
},
server: _this.config.server,
options: (0, _assign2.default)({}, _this.config.options),
@hiukky
hiukky / workbench.colorCustomizations.json
Created August 8, 2019 00:20 — forked from jacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",
@hiukky
hiukky / send_sms.js
Created September 23, 2019 19:12 — forked from luisloaiza/send_sms.js
Send SMS Amazon SNS Nodejs
/*
AWS implementation of SMS messaging
A simple sample that can become a lib.
*/
// npm install aws-sdk -g
const AWS = require('aws-sdk');