Skip to content

Instantly share code, notes, and snippets.

View albertogalca's full-sized avatar
👋

Alberto Gallego albertogalca

👋
View GitHub Profile
@albertogalca
albertogalca / config.yml
Last active January 13, 2023 13:10
Circle CI Config for fastlane
version: 2
aliases:
- &restore_npm_cache
name: 'Restoring node_modules from the cache'
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
- &install_npm_dependencies
name: Installing NPM Dependencies
command: yarn install
- &save_npm_cache
@albertogalca
albertogalca / craco.config.js
Last active April 9, 2020 10:36
Using Node.js funtionalities with CRA and Electron without ejecting Webpack
// Install craco package https://www.npmjs.com/package/@craco/craco and create a craco.config.js with the following configuration
module.exports = {
webpack: {
configure: {
target: "electron-renderer",
},
},
};
@albertogalca
albertogalca / renameFonts.js
Created January 6, 2020 10:42
Rename React Native Fonts
const fs = require('fs');
const path = require('path');
const opentype = require('opentype.js');
const fontFormats = ['.ttf', '.otf'];
const fontsPath = path.join(__dirname, 'assets', 'fonts');
const filenames = fs.readdirSync(fontsPath);
filenames.forEach(filename => {
const extension = path.extname(filename);
sudo lsof -P | grep ':80' | awk '{print $2}' | xargs kill -9
@albertogalca
albertogalca / resetXcode.sh
Created January 16, 2018 16:27 — forked from maciekish/resetXcode.sh
Reset Xcode. Clean, clear module cache, Derived Data and Xcode Caches. You can thank me later.
#!/bin/bash
killall Xcode
xcrun -k
xcodebuild -alltargets clean
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/com.apple.dt.Xcode/*
open /Applications/Xcode.app
@albertogalca
albertogalca / README.md
Created November 30, 2017 18:05 — forked from mapsam/README.md
Namecheap > Github pages

Namecheap > Github pages

Pointing your domains to a gh-pages branch requires three steps.

  1. Add the Github IPs as A records on Namecheap. Both Github IPs are 192.30.252.153 and 192.30.252.154.
  2. Add your Github domain as the CNAME alias on Namecheap. your_username.github.io. (mind the extra period!)
  3. Add a CNAME with your new domain name in your repository. lowercase and nothing else
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)
@mixin for-size($range) {
$phone-upper-boundary: 600px;
$tablet-portrait-upper-boundary: 900px;
$tablet-landscape-upper-boundary: 1200px;
$desktop-upper-boundary: 1800px;
@if $range == phone-only {
@media (max-width: #{$phone-upper-boundary - 1}) { @content; }
} @else if $range == tablet-portrait-up {
@media (min-width: $phone-upper-boundary) { @content; }
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
font-feature-settings: "liga" on;
-moz-font-feature-settings: "liga" on;
}

Contract Killer 3

Un fork del popular contrato open source para diseñadores y desarrolladores creado por Stuff & Nonsense


Entre nosotros [nombre de la compañía]