Skip to content

Instantly share code, notes, and snippets.

View yknx4's full-sized avatar

Jade Alejandra Ornelas yknx4

View GitHub Profile
@yknx4
yknx4 / getkeys.sh
Created January 24, 2022 01:03
Get Team SSH Keys from Github Organization
gh api graphql -F login='ORG' -F team='TEAM' -f query='
query ($login: String!, $team: String!) {
organization(login: $login) {
team(slug: $team) {
members(first: 100) {
edges {
node {
name
login
publicKeys(first: 100) {
@yknx4
yknx4 / README.md
Last active August 31, 2021 17:18
Github Repositores - Homie.mx Frontend Challenge

Recreate Github Repositories Page

Description

For this challenge you have to recreate the github repositories page (https://github.com/yknx4?tab=repositories) for any given user. It has to show the repositories list with basic information about the repository. Also you must be able to search by name. The content must be comfortably visible in a standard display with a resolution of 1920×1080

You must use the Github API (It is public and free!) to fetch the information about any public user.

Example: https://imgur.com/V4j8V9v

We can't make this file beautiful and searchable because it's too large.
In the banker's bed,"Williams, Cathy."
New Testament words.,"Barclay, William, lecturer in the University of Glasgow."
"Poets, farewell! ","Wilson, Edmund, 1895-1972."
"The world grows round my door; the story of The Kampong, a home on the edge of the tropics,","Fairchild, David, 1869-1954."
"Puerto Rican authors: a biobibliographic handbook,","Hill, Marnesba D."
"Memoirs of the life and services of Daniel Drake, M.D., physician, professor, and author; with notices of the early settlement of Cincinnati. And some of its pioneer citizens.","Mansfield, Edward Deering, 1801-1880."
Final harvest: Emily Dickinson's poems.,"Dickinson, Emily, 1830-1886."
Three times a bridesmaid,"Marsh, Nicola."
Meter means measure: the story of the metric system,"Hirsch, S. Carl."
"Fabulous Hoosier, a story of American achievement,","Fisher, Jane (Watts)"
@yknx4
yknx4 / colima.kml
Last active November 10, 2018 05:08
Colima KML
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>Zonas</name>
<Style id="poly-000099-5001-22-nodesc-normal">
<LineStyle>
<color>ff990000</color>
<width>5.001</width>
</LineStyle>
<PolyStyle>
@yknx4
yknx4 / check_circle_for_changes.sh
Created April 16, 2018 19:46
Checks if there were changes in certain folder to run tests, otherwise halt
FOLDER=$1
# Check if there were changes in a folder, otherwise skip tests
npx cifccigcr "${FOLDER}/**/*" "${CIRCLE_COMPARE_URL}"
if [ $? -eq 0 ]; then
echo $FOLDER folder not changed. skipping tests.
circleci step halt
else
echo $FOLDER folder changed. Running tests.
@yknx4
yknx4 / loggers.md
Created June 16, 2017 18:42
Loggers info

Loggers

Winston


Personal favorite :)

Pros

  • > 1 million download in the last month (comunnity acceptance)
  • > 2 years in the market.
  • last updated 3 months ago
  • 185 contributors
@yknx4
yknx4 / setup_dynamo.sh
Last active May 1, 2017 22:11
Setting up DynamoDB
#!/bin/bash
DYNAMO_DB_TARBALL='dynamodb_local_latest.tar.gz';
LATEST_DYNAMO_URL='https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz';
TARGET_DIR="$HOME/Apps"
DYNAMO_ROOT="$TARGET_DIR/dynamodb"
# Download DynamoDB
if ! test -f $DYNAMO_DB_TARBALL; then
@yknx4
yknx4 / Javascript.md
Last active February 23, 2017 18:00
Javascript Pro Tips

Javascript Pro-tips

Variables and constants

  • Prefer the use of let and const than var.
    • var should be used mostly in loops, to avoid a new variable each cycle.
    • ex. for (var i = 0; i < 10000; ++i) wil create variable i once, even though each cycle will "redefine" variable i, beacuse of how javascript works, it will just reuse the previous one, and use it for the rest of the loop
    • ex. for (let i = 0; i < 10000; ++i) will create variable i scoped to each cycle. So this will mean it will actually create 10,000 variables, one per cycle.
    • let is preferred because it is scoped to the current block, allowing nested blocks to access it, but preventing from redefining an upper level variable or being accessed from outside of the expected scope.
    • ex. var i = 5; if (i>0) { var i = 10; console.log(i); }; console.log(i); => output: 10, 10 In this example even though a new var was declared in the if block, it just reused the previous one. And so the i on the outer
@yknx4
yknx4 / settings.js
Last active February 20, 2017 16:16
var settings = {
spinner: {
enabled: false
}
}
if (typeof module != 'undefined') {
module.exports = settings;
}
@yknx4
yknx4 / -
Created November 29, 2016 16:27
2026, Better Nate Than Ever
3666, Dogboy
9298, Bone Gap
13815, Team Moon: How 400,000 People Landed Apollo 11 on the Moon
2342, Runt
2213, Sahara Special
9506, Conviction
19799, Rhythm Ride: A Road Trip Through the Motown Sound
10478, A Single Pebble
35655, This Broken Wondrous World