Skip to content

Instantly share code, notes, and snippets.

View alimoeeny's full-sized avatar
💭
Strong Opinions Weakly Held

Ali Moeeny alimoeeny

💭
Strong Opinions Weakly Held
View GitHub Profile
package;
import ui.Color;
import hxd.BitmapData;
import sys.io.File;
import hxd.Perlin;
function WorldGenTest() {
var w = 512;
var h = 512;
@alimoeeny
alimoeeny / identityNetwork.py
Created September 3, 2023 13:25
for testing and validation purposes, a keras based networks that returns the input image as is
from tensorflow import keras
from tensorflow.keras import layers
import numpy as np
IMAGE_SIDE = 256
input = layers.Input(shape=(IMAGE_SIDE, IMAGE_SIDE, 3))
x = keras.layers.Dense(3,"linear" )(input)
outputs = keras.layers.Dense(3, activation="linear")(x)
{
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.fontFamily": "Monoid, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 14,
@alimoeeny
alimoeeny / AWSBillingPermissions.json
Created May 18, 2020 10:45
AWS IAM Billing permissions
{
"Statement": [
{
"Action": [
"budgets:ViewBudget",
"cloudwatch:DescribeAlarmHistory",
"cloudwatch:GetDashboard",
"cloudwatch:GetMetricData",
"cloudwatch:DescribeAlarmsForMetric",
"cloudwatch:ListDashboards",
#if (UNITY_EDITOR)
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.IO;
public static class FLBuilder {
static string GetProjectName() {
string[] s = Application.dataPath.Split('/');
// <copyright file="InsideShader.cs" company="Google Inc.">
// Copyright (C) 2016 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
var window: UIWindow?
var sideMenuViewController: RESideMenu?
var rootTabVC: UITabBarController?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// about
var about : AboutViewController = AboutViewController(nibName: "AboutView_iphone", bundle: nil)
about.title = "About"
This file has been truncated, but you can view the full file.
brew install -v gcc 2>&1
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.9.1/gcc-4.9.1.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc-4.9.1.tar.bz2
==> Verifying gcc-4.9.1.tar.bz2 checksum
tar xf /Library/Caches/Homebrew/gcc-4.9.1.tar.bz2
==> Patching
==> ../configure --build=x86_64-apple-darwin14.0.0 --prefix=/usr/local/Cellar/gcc/4.9.1_1 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-4.9 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-cloog=/usr/local/opt/cloog --with-isl=/usr/local/opt/isl --with-system-zlib --enable-version-specific-runtime-libs --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --disable-werror --with-pkgversion=Homebrew gcc 4.9.1_1 --with-bugurl=https://github.com/Homebrew/homebrew/issues --enable-plugin --disable-nls --enable-multilib
checking build system type... x86_64-apple-darwin14.0.0
checking host system type... x86_64-apple-darwin14.0.0
checking target sys
@alimoeeny
alimoeeny / emptyjson.go
Created August 11, 2014 20:33
Empty things in json
package main
import (
"encoding/json"
"fmt"
)
type Book struct {
Title string `json:"title,omitempty"`
Author string `json:"author,omitempty"`
#!/bin/bash
# Auto Increment Version Script
# Make sure you have or create CFBuildNumber and CFBuildVersion in your info.plist
buildPlist="FlowHealth/FlowHealth-Info.plist"
buildVersion=$(/usr/libexec/PlistBuddy -c "Print CFBuildVersion" $buildPlist)
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist)
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBuildNumber $buildNumber" $buildPlist
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildVersion.$buildNumber" $buildPlist