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 / vim-gruvbox-pallete.txt
Created September 3, 2019 14:39
Vim Gruvbox Pallete for terminator
background color : #FFFFAF
font color : #303030
{{#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}}
/**
* 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)) *
@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"
}
]
},
@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
- mobile
max-width: 800px - 1
- mobile-small
max-width: 320px
- desktop
min-width: 800px
- desktop-tiny
@michaeljymsgutierrez
michaeljymsgutierrez / .htaccess
Last active January 7, 2020 10:23
.htaccess v2
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.html [L]
</IfModule>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
RewriteRule ^ /index.html
# Requires python 3
import scipy as sp
import sympy as sym
x = sym.symbols('x')
expression = input('Enter Expression: ')
transform = sym.diff(expression);
init_transform = str(transform)
@michaeljymsgutierrez
michaeljymsgutierrez / nodejs-mongodb.sh
Last active June 28, 2020 13:07
Script for installing NodeJS and MongoDB on Linux (Ubuntu Distro)
#! /bin/bash
# Install NVM - Node Version Manager
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
# Reload bash
source ~/.bashrc
# Install NodeJS
nvm install v12.18.1