Skip to content

Instantly share code, notes, and snippets.

View juanibrex's full-sized avatar
🎯
Focusing

Juani Brex juanibrex

🎯
Focusing
View GitHub Profile
@ahmadawais
ahmadawais / class-booking.php
Created January 15, 2016 12:10
WP: Generate Unique Title
/**
* Generate Unique Title.
*
* @since 1.0.0
*/
public function booking_title() {
// Generate a random number with 8 length.
$id_length = 8;
$uniqueid = crypt( uniqid( rand(), 1 ) );
@escueladigital
escueladigital / gist:0163e3e52ab14ee469fe
Last active June 22, 2016 10:51
Mixin Sass para proporcion alto/ancho
// Crea una proporcion de aspecto para un selector, requiere pasar los parametros horizontal ($h)
// y vertical ($v). Por ejemplo: @include proporcion(16,9) define una proporcion 16:9
// El tercer parámetro es opcional pero puede definirse un ancho (solo en porcentajes),
// sino se pasa el ancho por defecto será 100%
@mixin proporcion($h,$v,$width:100%){
width : $width;
height : 0;
overflow : hidden;
padding-bottom : $width * ($v/$h);
@nucliweb
nucliweb / SelectoresCSS.md
Last active November 20, 2020 19:37
Selectores CSS

Git Cheat Sheet

Commands

Getting Started

git init

or

@nucliweb
nucliweb / Pull-over-all-subdirectories.md
Last active December 27, 2022 14:58
Run pull origin master over all subdirectories

Update all the repositories in a folder (Mac OS X & Linux)

This command updates the repositories in all subfolders inside a folder.

⚠️ The script updates the current banch in each folder.

For e.g. run in code folder to update respositories in all the subfolders

/code
@onyxfish
onyxfish / README.md
Last active May 6, 2025 21:05
Google Spreadsheets script to generate slugs from a range of cells

This script for Google Spreadsheets allows you to generate slugs for your data such as might be used for creating unique urls.

Use it like this!

# A B C
1 a b slug
2 foo baz bing =slugify(A2:B4)
3 bar BAZ
4 FOO baz-bing
@varun-raj
varun-raj / pullJSON.js
Last active March 15, 2025 17:32
Google App Script To Fetch Data From JSON Webservice and Write them to google spreadsheet.
function pullJSON() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheets = ss.getSheets();
var sheet = ss.getActiveSheet();
var url="http://example.com/feeds?type=json"; // Paste your JSON URL here
var response = UrlFetchApp.fetch(url); // get feed
var dataAll = JSON.parse(response.getContentText()); //
@ivandrofly
ivandrofly / Unicode table
Created May 4, 2014 02:20
Unicode table - List of most common Unicode characters *
Unicode table - List of most common Unicode characters *
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable.
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol.
What is Unicode?
Unicode is a standard created to define letters of all languages ​​and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode.
How to identify the Unicode number for a character?
Type or paste a character:
@rosswd
rosswd / multi-git-win.md
Last active December 30, 2024 13:49
Setting up a Github and Bitbucket account on the same computer on Mac OS. Now with a guide for Windows 10.

Setting up github and bitbucket on the same computer (Windows)

Guide for Windows

mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.

Github will be the main account and bitbucket the secondary.

Git for Windows

  • Download and install Git for Windows
    • In the installer, select everything but decide if you want a desktop icon (2nd step)