Skip to content

Instantly share code, notes, and snippets.

View zazk's full-sized avatar
:octocat:
Let's talk about Javascript & DevOps

Enrique Juan de Dios zazk

:octocat:
Let's talk about Javascript & DevOps
View GitHub Profile
func startApp() {
onMainDo({
self.activityIndicator.startAnimating()
}, onBackgroundDo: {
let storage = PersistentSecureStorage.shared()
guard let savedToken == storage.token {
return .goToAuth
}
let tokenIsValid = authService.isValidToken(savedToken)
if !tokenIsValid {
@zazk
zazk / CodeChallenge.md
Last active August 17, 2019 03:34
Challenge Android

Your assignment is to create a simple Reddit client that shows the top 50 entries from Reddit - www.reddit.com/top Guidelines:

  • Assume latest Android platform
  • Support Landscape What to show The app should be able to show data from each entry such as:
  • Title (at its full length, so take this into account when sizing your cells)
  • Author
  • entry date, following a format like “x hours ago”
  • A thumbnail for those who have a picture.
@zazk
zazk / .tmux.conf
Created April 22, 2019 12:45 — forked from subfuzion/.tmux.conf
My .tmux.conf for tmux 2.1 (with fixes for mouse breakage)
# Inspirations:
# http://mutelight.org/practical-tmux
# http://zanshin.net/2013/09/05/my-tmux-configuration/
# http://files.floriancrouzat.net/dotfiles/.tmux.conf
# http://stackoverflow.com/questions/9628435/tmux-status-bar-configuration
# https://github.com/Lokaltog/powerline
# https://github.com/remiprev/teamocil
# http://superuser.com/questions/74492/whats-the-best-prefix-escape-sequence-for-screen-or-tmux
# http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/
#
@zazk
zazk / get.dni.sh
Last active February 23, 2019 03:55
SUNAT RUC
curl -XGET http://aplicaciones007.jne.gob.pe/srop_publico/Consulta/Afiliado/GetNombresCiudadano?DNI=40392025
@zazk
zazk / flatter.js
Created February 7, 2019 14:20
Flat composed array to a flat one
function flatter( arr ){
return arr.reduce(function (result, el) {
return result.concat(Array.isArray(el) ? flatter(el) : el);
}, []);
}
@zazk
zazk / bitbucket-pipelines.yml
Last active February 7, 2019 12:14 — forked from kainiklas/bitbucket-pipelines.yml
Bitbucket Pipeline for Angular 6 + Firebase deployment
image: node:10
pipelines:
branches:
master:
- step:
name: "Build, test and deploy to firebase production"
deployment: production
caches:
- node
@zazk
zazk / flow.js
Created January 31, 2019 17:11
Flow
export const mockHTTPListenerMongoDBProject = {
requiresMigration: false,
valid: true,
message: "",
result: {
id: "f99819b3-8572-4f29-bbca-d9cb3b6820c4",
name: "FlowListenerRequest00",
type: "Mule Application",
environmentId: "e38b21e1-2ed0-4b28-9e10-496bbcfa2bca",
organizationId: "bf33dc0b-10a6-4f6b-9714-dd172737daeb",
@zazk
zazk / divisors.rb
Created October 24, 2018 00:21
Get all divisors by given number
# Prints divisors given a number
def get_all_divisors_of n
# Set the inital value to the index
a = 1
# While value be minor to given number
while a <= n
# Compare if the module of the given number can be divided to index
if ( n%a )== 0
# Print divisor
puts a
@zazk
zazk / README.md
Created September 3, 2018 12:45 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@zazk
zazk / WebsiteChecklist.md
Last active August 24, 2018 14:53
Website Checklist

Website Checklist

  • Add Analytics Report
  • All the forms should have captcha.
  • All the list should have limits.
  • Review the excerpt in all homepage(Sometimes prints extend the space that is designed)
  • Should configure the best to SEO techniques
  • Links should work on images as [Read More..] links
  • Every Page and Section should have Title Tag and be unique for each page
  • Every Page should have a description meta tag.
  • Every Form should have Captcha.