Skip to content

Instantly share code, notes, and snippets.

View michaeljymsgutierrez's full-sized avatar
:octocat:
I'm just a developer for fun ⌨️

Chael Gutierrez michaeljymsgutierrez

:octocat:
I'm just a developer for fun ⌨️
View GitHub Profile
@michaeljymsgutierrez
michaeljymsgutierrez / local-npm-modules.txt
Created November 17, 2019 08:50
My local npm modules installed
├── bower@1.8.4
├── create-react-app@3.0.0
├── create-react-native-app@2.0.2
├── docusaurus-init@1.0.2
├── electron-builder@20.28.4
├── electron-packager@12.2.0
├── ember-cli@3.8.2
├── ember-cli-update@0.43.3
├── expo-cli@2.3.8
├── gulp@3.9.1
@michaeljymsgutierrez
michaeljymsgutierrez / map-style-for-manila.js
Created November 15, 2019 05:27
For manial - map styling
[
{
"featureType": "administrative",
"elementType": "labels.text",
"stylers": [
{
"visibility": "on"
}
]
},
/**
* Set of functions for calculating distance
*/
const getDistance = (lat1, lon1, lat2, lon2) => {
let R = 6371;
let dLat = deg2rad(lat2 - lat1);
let dLon = deg2rad(lon2 - lon1);
let a =
Math.sin(dLat / 2) * Math.sin(dLat / 2) +
Math.cos(deg2rad(lat1)) *
{{#dropdown-button buttonLabel=(or selectedDeliverySlotLabel uniqCheckoutDeliverySlotLabel.firstObject) selected=(or selectedDeliverySlotLabel uniqCheckoutDeliverySlotLabel.firstObject) collapseOnSelect=true as |db|}}
{{#each uniqCheckoutDeliverySlotLabel as |label|}}
{{#db.option value=label onSelect=(action "selectDeliverySlotLabel" label)}}
{{label}}
{{/db.option}}
{{/each}}
{{/dropdown-button}}
@michaeljymsgutierrez
michaeljymsgutierrez / vim-gruvbox-pallete.txt
Created September 3, 2019 14:39
Vim Gruvbox Pallete for terminator
background color : #FFFFAF
font color : #303030
@michaeljymsgutierrez
michaeljymsgutierrez / git_globally_ignore_files.txt
Created June 10, 2019 02:51
Command for globally ignoring files
cd ~
touch .gitignore_global
git config --global core.excludesfile ~/.gitignore_global
@michaeljymsgutierrez
michaeljymsgutierrez / settings.json
Created May 29, 2019 07:43
VS Code Settings.json
{
"editor.fontSize": 12,
"editor.minimap.enabled": false,
"editor.detectIndentation": false,
"workbench.sideBar.location": "right",
"files.associations": {
"*.inc": "php",
"*.vue": "html",
"*.cgf": "shellscript"
},
@michaeljymsgutierrez
michaeljymsgutierrez / settings.json
Created May 17, 2019 04:43
Sublime Text 3 - Settings
{
"color_scheme": "Packages/Monokai++/themes/Monokai++.tmTheme",
"detect_indentation": false,
"font_size": 12,
"highlight_modified_tabs": true,
"hot_exit": false,
"ignored_packages":
[
"Vintage"
],
{
"data": [{
"type": "users",
"id": "1",
"attributes": {
"name": "John"
}
},{
"type": "users",
"id": "2",
@michaeljymsgutierrez
michaeljymsgutierrez / .bashrc
Created November 18, 2018 11:15
Personal Bash Config
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac