Skip to content

Instantly share code, notes, and snippets.

View rsurjano's full-sized avatar
:octocat:
Business & Code!

Roy Carlos rsurjano

:octocat:
Business & Code!
View GitHub Profile
# PURGING S3 BUCKET
aws s3 rm s3://llamabus.pe --recursive
#UPLOADING TO S3
aws s3 sync ./packages/llamabus-front/public/ s3://llamabus.pe \
--exclude "*" \
--include "*.js" --acl "public-read" --cache-control "max-age=31536000" --content-encoding gzip \
--include "*.html" --acl "public-read" --cache-control "max-age=31536000" --content-encoding gzip \
--include "*.css" --acl "public-read" --cache-control "max-age=31536000" --content-encoding gzip \
--include "*.svg" --acl "public-read" --cache-control "max-age=31536000" --content-encoding gzip \
--include "*.json" --acl "public-read" --cache-control "max-age=31536000" --content-encoding gzip
@rsurjano
rsurjano / addons.js
Created December 11, 2019 20:47
Storybook configuration - for stenciljs
import '@storybook/addon-actions/register';
import "@storybook/addon-jest/register";
import '@storybook/addon-viewport/register';
import '@storybook/addon-a11y/register';
import 'storybook-readme/register';
import '@storybook/addon-knobs/register';
import '@storybook/addon-backgrounds/register';
# Editor configuration, see https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = auto
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
plugins: ['simple-import-sort', '@typescript-eslint', 'prettier'],
env: {
# Improve your code commenting by annotating with alert, informational, TODOs, and more!
code --install-extension aaron-bond.better-comments
# formateador de css
code --install-extension aeschli.vscode-css-formatter
# recomendado!! crea breakpoints navegables en el codigo
code --install-extension alefragnani.Bookmarks
# para trabajar con plantillas handlebars
code --install-extension andrejunges.Handlebars
# temas muy buenos para vscode
code --install-extension AndrsDC.base16-themes
@rsurjano
rsurjano / settings.json
Created December 11, 2019 18:35
vscode-editor
{
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": false
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
@rsurjano
rsurjano / .npmrc
Last active December 9, 2019 14:00
Verdaccio Script for caching npm packages
registry=http://localhost:4873
@rsurjano
rsurjano / gist:042ccdcaec9bd1383cb6773d82441609
Created June 11, 2019 13:37
Flutter development agencies
pyramidions
https://www.pyramidions.com/flutter-app-development
intelivita
https://www.intelivita.co.uk/flutter-application-development.php
appinventiv
https://appinventiv.com/flutter-app-development
citrusleaf
@rsurjano
rsurjano / string2dom
Last active September 12, 2018 15:24
creates a html content using a provided string
ar str2DOMElement = function(html) {
var wrapMap = {
option: [ 1, "<select multiple='multiple'>", "</select>" ],
legend: [ 1, "<fieldset>", "</fieldset>" ],
area: [ 1, "<map>", "</map>" ],
param: [ 1, "<object>", "</object>" ],
thead: [ 1, "<table>", "</table>" ],
tr: [ 2, "<table><tbody>", "</tbody></table>" ],
col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
@rsurjano
rsurjano / Detect IE
Last active September 12, 2018 14:16
Ie Browser Detection javascript code snippet
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}