Skip to content

Instantly share code, notes, and snippets.

View luisabarca's full-sized avatar
🏠
Working from home

Luis Abarca luisabarca

🏠
Working from home
View GitHub Profile
import { SanityDocumentStub } from '@sanity/client'
import { algolia, sanity } from '~/libs'
import { NextApiRequest, NextApiResponse } from 'next'
import indexer from 'sanity-algolia'
const handler = (req: NextApiRequest, res: NextApiResponse) => {
if (req.headers['content-type'] !== 'application/json') {
res.status(400)
res.json({ message: 'Bad request' })
@villacoder
villacoder / README.md
Last active August 12, 2021 16:11
Wizeline Academy - 2021 React Bootcamp Project

Wizeline Academy - 2021 React Bootcamp Project

Introduction

Thank you for participating in the 2021 React Bootcamp! Here you will find the instructions to complete your project.

The purpose of this assignment is for you to demonstrate your React skills. This is your chance to show off everything you've learned during our bootcamp and earn your diploma.

The idea is that you build and deliver an entire React application on your own. We don't want to limit you by providing some "fill-in-the-blanks" exercises, but instead ask you to build it from scratch. We hope you find this project challenging and engaging.

The goal is to create a YouTube client app.

@jparciga
jparciga / README.md
Last active October 11, 2021 01:45
Mini-Challenge 5: Routing

Mini-Challenge 5: Routing

The Challenge

Note: Apply TDD as much as you can.

  1. Implement React Router on your project.
  2. Refactor your code to navigate across your sections.
  3. Create the Login View
  • 3.1 It should display a form with a username and password fields.
@josemarimanio
josemarimanio / install_pyenv_mac_zsh.rst
Created May 13, 2020 12:13
Installing pyenv on macOS for Zsh using Homebrew
@fer-ri
fer-ri / background-image.ts
Created May 24, 2016 06:33
Background Image Style Directive for Angular 2 and Ionic 2
import {Directive, ElementRef, Input} from '@angular/core';
@Directive({
selector: '[background-image]'
})
export class BackgroundImage {
private el: HTMLElement;
constructor(el: ElementRef) {
this.el = el.nativeElement;
@abcsds
abcsds / Maracuyá.md
Created March 16, 2016 18:31
Receta para licor de maracuyá

Licor de maracuyá

  1. Calculen cuánto maracuyá quieren usar. Digamos que usan 2 kg de maracuyá para este ejemplo. (Pesados con todo y cáscara)
  2. Los abren y les sacan todo el contenido (chequen que no estén agusanados) y lo colocan en un recipiente
  3. Licúan la pulpa de manera que se suelten las semillas, o sea en la velocidad mínima y por nó más de un minuto. (No quieren trozarlas todas y tener licor de semilla).
  4. Lo cuelan todo para quitarle las semillas. Esto toma un rato y hay que estarle moviendo porque la pulpa atasca la coladera.
  5. Una vez colado, una o dos veces le agregan aguardiente en una cantidad igual a la mitad del peso original del maracuyá en litros (2kg * 0.5 = 1lt de aguardiente. El aguardiente lo pueden conseguir en alguna mezcalería en el centro o de plano en una licorería. No gasten más de 100 pesos en eso, por muy caro y que no tenga ya sabor, que sea natural; de caña puede ser)
  6. Lo revuelven bien un ratillo
  7. Lo ponen en un recipiente (yo diría que de vidrio) en total osc
@renventura
renventura / full-width-dashboard-widget.php
Created January 28, 2016 17:15
Add a full-width dashboard widget in WordPress
<?php // Mind this opening PHP tag
/**
* Adds hidden content to admin_footer, then shows with jQuery, and inserts after welcome panel
*
* @author Ren Ventura <EngageWP.com>
* @see http://www.engagewp.com/how-to-create-full-width-dashboard-widget-wordpress
*/
add_action( 'admin_footer', 'rv_custom_dashboard_widget' );
function rv_custom_dashboard_widget() {
@Nilpo
Nilpo / Using Git to Manage a Live Web Site.md
Last active April 24, 2025 23:08
Using Git to Manage a Live Web Site

Using Git to Manage a Live Web Site

Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

Contents

def instacheck(name)
unless /[a-z0-9._]{,30}/.match(name)
return false
end
if /\.\./.match(name)
return false
end
/**
* ================== angular-ios9-uiwebview.patch.js v1.1.1 ==================
*
* This patch works around iOS9 UIWebView regression that causes infinite digest
* errors in Angular.
*
* The patch can be applied to Angular 1.2.0 – 1.4.5. Newer versions of Angular
* have the workaround baked in.
*
* To apply this patch load/bundle this file with your application and add a