Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrei Miclaus frostyandy2k

View GitHub Profile
View ScriptableObjectLoader.cs
public class ScriptableObjectLoader : EditorWindow
{
private static readonly int TYPE = 0;
private static readonly int NAME = 1;
private static readonly int IMAGE_PATH = 2;
[MenuItem("Tools/Load Scriptable Object Data")]
public static LoadScriptableObjectsFromFile()
{
@frostyandy2k
frostyandy2k / tweet_dumper.py
Created Jun 19, 2018 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
View tweet_dumper.py
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
@frostyandy2k
frostyandy2k / MS3 Demonstrator.md
Last active Apr 12, 2018
MS3 Demonstrator Liste der Ports und Apps KIT
View MS3 Demonstrator.md

Liste der Apps und Ports

  • Map App (Andrei) - 51100

  • AOI Machine Digital Twin (Andrei) - 51101

  • Black Cylinder App (Andrei) - 51102

  • SAP Kanban App (Andrei) - 52101

  • SICK Lector Digital Twin (Andrei/Lukas Adler) - 52102

  • OEE App (Andrei/Lukas Adler) - 52103

  • AOI Machine Dashboard (Nico) - 51000

@frostyandy2k
frostyandy2k / Dockerfile
Created Apr 5, 2018
Dotnet Core Docker multi stage build and runtime for webapi projects
View Dockerfile
FROM microsoft/dotnet:2.1-sdk AS build-env
WORKDIR /app
# copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore
# copy everything else and build
COPY . ./
# RUN dotnet build -c Release
@frostyandy2k
frostyandy2k / app.module.ts
Last active Feb 17, 2018
Ionic 3 Navigation App Module Page2 Declaration
View app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { Observable } from 'rxjs/Rx'
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { Page2 } from "../pages/page2/page2";
@frostyandy2k
frostyandy2k / ionic-navigation-page.ts
Last active Feb 17, 2018
Ionic 3 Navigation Type Script
View ionic-navigation-page.ts
/** ==========
Homepage TypeScript
========== **/
import { Component, ViewChild } from '@angular/core';
import { NavController } from "ionic-angular";
import { Page2 } from "../page2/page2";
@Component({
selector: "page-home",
@frostyandy2k
frostyandy2k / ionic-navigation.html
Last active Feb 17, 2018
Ionic 3 Navigation HTML
View ionic-navigation.html
<!-- Uses classical html navigation -->
<a href="/#/page2">Jump to Page2</a>
<!-- Use the ionic stack for navigation (automatic back button) -->
<!-- Text Button -->
<button [navPush]=”page2”>Push Page2 onto the stack and navigate to it</button>
<!-- Style Icon Button -->
<button [navPush]=”page2” ion-button icon-only>