Skip to content

Instantly share code, notes, and snippets.

View fabriziogiordano's full-sized avatar
🎯
Focusing

Fabrizio Giordano fabriziogiordano

🎯
Focusing
View GitHub Profile
Number.prototype[Symbol.iterator] = function*() {
for (let i = 0; i <= this; i++) {
yield i;
}
};
This file has been truncated, but you can view the full file.
Scanning 582 folders for symlinks in /Users/me/ReactNative/test/node_modules (4ms)
Found Xcode project test.xcodeproj
Launching iPhone 6 (iOS 10.0)...
Building using "xcodebuild -project test.xcodeproj -configuration Debug -scheme test -destination id=C3C3B0EB-81FD-4F96-960A-4E7CFD2E1232 -derivedDataPath build"
User defaults from command line:
IDEDerivedDataPathOverride = /Users/me/ReactNative/test/ios/build
=== BUILD TARGET yoga OF PROJECT React WITH CONFIGURATION Debug ===
@fabriziogiordano
fabriziogiordano / Readme.md
Last active December 27, 2021 11:01
Chrome Headless Vagrant Screenshot

On Mac

Install Vagrant Box

if ! type "brew" > /dev/null; then
  ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)";
fi
brew tap phinze/homebrew-cask && brew install brew-cask;
brew cask install vagrant;
brew cask install virtualbox;
generate_strings = (d, t, c, j, p, m, o) => {
console.log(
"c:", c,
"c.length:", c.length,
"j:", j,
"p:", p,
"m:", m,
"o:", o
)
@fabriziogiordano
fabriziogiordano / data.js
Created March 12, 2017 19:46
combinatios or permutation or something
string = ['abcdef']
result => [
['abcdef'],
['a', 'bcdef'],
['ab', 'cdef'],
['abc', 'def'],
['abcd', 'ef'],
['abcde', 'f'],
@fabriziogiordano
fabriziogiordano / SE Apps.html
Last active February 21, 2017 15:23
SE Apps Links Hockey App
AN StreetEasy Dev
https://rink.hockeyapp.net/manage/apps/108149
AN StreetEasy Rentals Dev
https://rink.hockeyapp.net/manage/apps/463050
IOS StreetEasy Dev/Enterprise
https://rink.hockeyapp.net/manage/apps/103258
@fabriziogiordano
fabriziogiordano / raspberrypi-fresh.sh
Created February 8, 2016 15:39
fresh raspberry install
diskutil list
diskutil unmountDisk /dev/disk2
sudo dd bs=1m if=2015-11-21-raspbian-jessie.img of=/dev/rdisk2 (ctrl+t for progress)
sudo diskutil eject /dev/rdisk2
RaspBerry
pi raspberry
@fabriziogiordano
fabriziogiordano / artboard_plus_phone_case_grayscale.sh
Created February 1, 2016 17:31
Medium Embed - Artboard + Phone Case - Gray scale
# Imagemagick has some nice filters for gray scale
convert \
"$folder_artboards/$base_name" \
-grayscale rec601luma \
"$folder_grayscale/$base_name"
@fabriziogiordano
fabriziogiordano / artboard_plus_phone_case.sh
Created February 1, 2016 17:26
Medium Embed - Artboard + Phone Case
#!/bin/bash
# The folders where the artboards and the result is stored
folder_artboards="./artboards"
folder_composite="./composite"
# Phone case
bg_name="phone_case.png"
bg_size=`identify -format '%wx%h' "$bg_name"`
@fabriziogiordano
fabriziogiordano / grayscale_artboards.sh
Created January 31, 2016 04:36
Convert a bunch of artboards in grayscale.
#!/bin/bash
folder_artboards="./artboards"
folder_grayscale="./grayscale"
folder_grayscale_opt="./grayscale_opt"
# find $folder_grayscale -name "*.png" -type f -delete
for i in $(find $folder_artboards -name "*.png" -type f);
do