Skip to content

Instantly share code, notes, and snippets.

Avatar
🧶
Knitting the next thing

Rui rpbaltazar

🧶
Knitting the next thing
View GitHub Profile
@rpbaltazar
rpbaltazar / server.py
Created Oct 7, 2020
python server.py
View server.py
from http.server import HTTPServer, BaseHTTPRequestHandler
from io import BytesIO
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.end_headers()
View git flows
ousama--ooooooooo
|
develop----------------------------->ooooooooo
|
nuno________________________________>xxxx
gco develop
g pull
View rubocop-loop.sh
# /bin/bash
x=0
while [ $x -eq 0 ]
do
rubocop -C false -a -F | grep 'offense detected' &> /dev/null
x=$?
echo "Finished $x"
done
echo $x
@rpbaltazar
rpbaltazar / Makefile
Last active May 24, 2020
githooks examples
View Makefile
init:
find .git/hooks -type l -exec rm {} \;
find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \;
View .github-config-rubocop_linter_action.yml
check_name: 'Rubocop Results'
versions:
- rubocop: '0.75.1'
- rubocop-rails: '2.3.2'
- rubocop-performance: '1.5.0'
- rubocop-rspec: '1.36.0'
View keybase.md

Keybase proof

I hereby claim:

  • I am rpbaltazar on github.
  • I am rpbaltazar (https://keybase.io/rpbaltazar) on keybase.
  • I have a public key ASCkk3uhB1bExXUnUb4YnBqDtLXY-VRLflilN5x-urUXJQo

To claim this, I am signing this object:

@rpbaltazar
rpbaltazar / Dockerfile
Created Aug 16, 2019
dockerfile and sample docker-compose for whistler services
View Dockerfile
FROM ruby:2.6.3-stretch as base
# WORKDIR needs to be the same as in the final base image or compiled gems will point to an invalid directory
# NOTE: For the compiled gems to be shared across services then the WORKDIR needs to be same for all images
RUN mkdir -p /home/rails/services/app
WORKDIR /home/rails/services/app
ENV BUNDLE_PATH=/bundle \
BUNDLE_BIN=/bundle/bin \
GEM_HOME=/bundle
View Compilation errors
ERROR in ./src/img/plaing_img.png
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
@ ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-1d34fbe4","hasScoped":true,"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/app/containers/ProfilePage/components/Profile.vue 1:4578-4619
@ ./src/app/containers/ProfilePage/components/Profile.vue
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/app/containers/ProfilePage/index.vue
@ ./src/app/containers/ProfilePage/index.vue
@ ./src/index.js
View Questions.JavaScript.md

JavaScript Developer Questionnaire

1. Examine this script example.

var r = undefined;
a = b = c = 20;
n = i = r;

1.1 What will be the value of b after its execution?

2. Describe each part of a for loop structure.

You can’t perform that action at this time.