Skip to content

Instantly share code, notes, and snippets.

View jpalala's full-sized avatar
🎯
Focusing

Jose Palala jpalala

🎯
Focusing
View GitHub Profile
@jpalala
jpalala / careeradvice.md
Created June 26, 2020 02:20
Career Advice

mga sikreto ng mga nag progress

  • start initiative
  • build rapport early - lunch, team treats, kwento
  • deadlines = agreed upon specifications / commitment. learn to say No BUT..
  • there are wrong excuses and there are good excuses. make sure you're good.
  • keep learning new things
  • gary vaynerchuk - document!
  • if you have a manager or know someone senior - ask yourself - do you want to become your manager/senior in the future? alam mo na ang sagot
@jpalala
jpalala / OBSERVABLE.md
Last active June 23, 2020 06:28
Basic observable

Basic observable

import Rx from 'rxjs/Rx';

const source$ = Rx.Observable(observer => {
    console.log('Creating observable');

    observer.next('Hello'); //emits value
 observer.complete(); //need to tell when the observer is complete
@jpalala
jpalala / serve.go
Created June 15, 2020 06:52 — forked from paulmach/serve.go
Simple Static File Server in Go
/*
Serve is a very simple static file server in go
Usage:
-p="8100": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.
*/
package main
@jpalala
jpalala / hypotethically-if-i-were-to-start-again.md
Created June 11, 2020 05:09
Recommended frontend dev js framework best path

2020 JS framework roadmap

jQuery 
-> Bootstrap CSS
--> Backbone basics,
---> AngularJS (so you know how complicated Angular is), 
-----> Angular  
-------> Angular + Bootstrap 
---------> React/Vue (Learn how to better simplify and organize your code, using what you know from angular ) 
@jpalala
jpalala / gist:e2be41b27fa55687210bb5454151f079
Created June 8, 2020 09:44
openssl ecrypt whatever id_rsa
encrypting self
openssl enc -bf -pass pass:secret -in ~/.ssh/id_rsa -out ~/Dropbox/private/id_rsa.bf
@jpalala
jpalala / IDEA.md
Created June 2, 2020 21:51
Deno ditributable - using NPM Packages as sane way to distribute deno and using Deno to share CSS stylings

WARNING THis goes contrary to Deno philosophy of no package.json dependencies.

Imports management

This Article from dev.to desrcibes a way to keep packages updated (or at least notify you if package needs updating).

But there's already an existing tool called npm. How can we take advantage of npm to distribute deno packages. Among other things, since deno acts from cdns, you can also

Idea 1: What if instead, you ship deno packages as npm packages

@jpalala
jpalala / index.html
Created May 5, 2020 15:46
searchparams using location.search
<!doctype html>
<html>
<script>
var search = location.search;
var paramsString = "?p=2&topic=api";
//var searchParams = new URLSearchParams(paramsString);
var searchParams = new URLSearchParams(search);
console.log('s: ', search);
console.log(searchParams.get("p"));
</script>

TIL: The :host pseudo selector

:host {
  display: block;
  border: 1px solid black;
}

// thanks to https://angular.io/guide/component-styles#host