Skip to content

Instantly share code, notes, and snippets.

View chuckrincon's full-sized avatar
🚀
building...

Chuck Rincón chuckrincon

🚀
building...
View GitHub Profile
@chuckrincon
chuckrincon / webp-convert-directory.sh
Last active December 6, 2023 00:10 — forked from tabrindle/webp-convert-directory.sh
Convert all files in directory to webp, with default params, or standard cwebp params passed from command
#!/bin/zsh
# Define the image types to search for
extensions=("*.jpeg" "*.jpg" "*.tiff" "*.tif" "*.png" "*.ico")
# Iterate over each image type
for type in "${extensions[@]}"; do
# Find files of the specified image type
find . -type f -iname "$type" | while read -r IMAGE; do
# Get the filename without extension
@chuckrincon
chuckrincon / gotham.md
Created August 5, 2020 23:36 — forked from mfd/ gotham.md
Gotham font
https://cdn.rawgit.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/856f1dbb8d807aabceb80b6d4f94b464df461b3e/gotham.css

<link rel="https://cdn.rawgit.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/856f1dbb8d807aabceb80b6d4f94b464df461b3e/gotham.css">

javascript:function getKeywords(){var e="",o=document.getElementsByTagName("meta");if(o.length){for(var t=0;t<o.length;t++)"keywords"===o[t].name.toLowerCase()&&(e+=o[t].content.toLowerCase());if(e){let o=e.split(","),t=document.createElement("textarea");t.value=o.sort().join("\n"),document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),alert(`Se copiaron [${o.length}] keywords del sitio:\n${window.location.origin}`)}else{e.split(",");let o=document.createElement("textarea");o.value=`No se encontraron keywords el sitio:\n${window.location.origin}`,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o),alert(`No se encontraron keywords el sitio:\n${window.location.origin}`)}}}getKeywords();
import UIKit
class NewsTableViewCell: MasterPostTVCell {
// MARK: - @IBOutlet
@IBOutlet weak var vVideo: UIView!
@IBOutlet weak var lblTitle: UILabel!
@IBOutlet weak var lblDetail: UILabel!
@chuckrincon
chuckrincon / wordpress-valet-install.md
Created January 3, 2019 15:49 — forked from orumad/wordpress-valet-install.md
How to install Wordpress from command line in Valet

How to install Wordpress from command line in Valet

I use Valet as my local web development environment (PHP, Laravel, Wordpress, ...)

This gist is my own recipe to install Wordpress from the command line to use it with Valet. Maybe this is useful for you too.

Install 'WP-CLI' command line tool

@chuckrincon
chuckrincon / wordpress-valet-install.md
Created January 3, 2019 15:49 — forked from orumad/wordpress-valet-install.md
How to install Wordpress from command line in Valet

How to install Wordpress from command line in Valet

I use Valet as my local web development environment (PHP, Laravel, Wordpress, ...)

This gist is my own recipe to install Wordpress from the command line to use it with Valet. Maybe this is useful for you too.

Install 'WP-CLI' command line tool

@chuckrincon
chuckrincon / ConfigServiceProvider.php
Last active October 10, 2023 14:13
Load all your lumen config files painless.
<?php
namespace App\Providers;
use Illuminate\Support\Facades\App;
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Filesystem\FileNotFoundException;
class ConfigServiceProvider extends ServiceProvider
{
{
"currency": "MXN",
"origin": "iOS",
"is_billable": true,
"description": "Sed magni occaecati aut aspernatur unde sit et.",
"shipping_contact": {
"addresses_id": 1,
"receiver": "Peter Durgan",
"phone": "1-604-681-7465",
"email": "[email protected]",