Skip to content

Instantly share code, notes, and snippets.

View catalin-miron-hs's full-sized avatar

Catalin Miron catalin-miron-hs

View GitHub Profile
<App>
<Font ux:Global="Linearicons" File="Linearicons-Free.ttf" />
<Panel>
<JavaScript>
var Observable = require('FuseJS/Observable');
var menuItems = [{
"title": "Menu Item 01",
"icon": "\ue82e", // Basket
@ptmt
ptmt / generate_assets.js
Last active August 24, 2016 15:23
node --harmony utils/generate_images.js
'use strict';
const IMAGES_DIR = './images'
const ASSETS_DIR = './iOS/Images.xcassets'
const EXTENSIONS = ['jpg', 'jpeg', 'png']
var fs = require('fs')
var gm = require('gm')
function convertAndCopy(source, scaleFactor, imageName, imageExt) {
let per = scaleFactor === 3 ? '100%' : scaleFactor === 2 ? '50%' : '25%'
@ptmt
ptmt / macOS-arm-setup.sh
Last active February 4, 2022 09:11
Setting up fresh macOS
# 1. Install Brew (warning: at least read install at first)
cat "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# 2. Install Oh-my-zsh (warning: at least read install.sh at first)
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | cat
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
# 4. Install brew packages
brew install mas # appstore done right