Skip to content

Instantly share code, notes, and snippets.

View PushoN's full-sized avatar
💭
MS makes github terrible.

Alexey Panov PushoN

💭
MS makes github terrible.
View GitHub Profile
@PushoN
PushoN / UnityAssetBundleBuilder.cs
Created March 15, 2019 06:41 — forked from tkyaji/UnityAssetBundleBuilder.cs
[Unity] Build Asset Bundle, and upload to AWS-S3
using UnityEngine;
using UnityEngine.Networking;
using UnityEditor;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System;
@PushoN
PushoN / Algo.cs
Last active November 29, 2018 04:26
Training algorithm C#
namespace Training
{
public class Algorithm
{
//Binary search in array, return index of target number
public int DoBS(int[] array, int target)
{
//array must be sorted if not do sort first
int index = -1;
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Threading.Tasks;
namespace Monodev
{
public class MainThread : MonoBehaviour
@PushoN
PushoN / Dart Class.dart
Created June 7, 2018 10:35 — forked from buntagonalprism/Dart Class.dart
Flutter and Dart collection of file templates for Android Studio development
#set( $nameparts = $NAME.split("_"))
#set( $namepart = '')
#set( $classname = '')
#foreach( $namepart in $nameparts )
#set( $classname = $classname + $namepart.substring(0, 1).toUpperCase() + $namepart.substring(1))
#end
class $classname {
// TODO: add class properties and methods
@PushoN
PushoN / Dart Class.dart
Created June 7, 2018 10:35 — forked from buntagonalprism/Dart Class.dart
Flutter and Dart collection of file templates for Android Studio development
#set( $nameparts = $NAME.split("_"))
#set( $namepart = '')
#set( $classname = '')
#foreach( $namepart in $nameparts )
#set( $classname = $classname + $namepart.substring(0, 1).toUpperCase() + $namepart.substring(1))
#end
class $classname {
// TODO: add class properties and methods
@PushoN
PushoN / RoundedBottomSheetDialogFragment.kt
Created May 28, 2018 08:00 — forked from ArthurNagy/RoundedBottomSheetDialogFragment.kt
Rounded modal bottom sheet as seen in new Google products(Tasks, News, etc.)
package com.your.package
import android.app.Dialog
import android.os.Bundle
import com.your.package.R
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
/**
* BottomSheetDialog fragment that uses a custom
@PushoN
PushoN / openresty-ubuntu-install.sh
Created May 15, 2018 07:30 — forked from kingtuna/openresty-ubuntu-install.sh
Easy install openresty (used and tested on Ubuntu 14.04, 15.10 and 16.04)
#!/bin/bash
apt-get -y update
apt-get -y install nginx-extras build-essential libpcre3-dev libssl-dev libgeoip-dev libpq-dev libxslt1-dev libgd2-xpm-dev
wget -c https://openresty.org/download/openresty-1.11.2.1.tar.gz
tar zxvf openresty-1.11.2.1.tar.gz
cd openresty-1.11.2.1
./configure \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
using System;
using System.Collections;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using UnityEngine;
namespace HojiraCo
{
public static class PlayerPrefs
<?php
namespace App;
use Carbon\Carbon;
Class EloquentVueTables implements VueTablesInterface {
public function get($model, Array $fields) {