This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
namespace Maxstupo.Utility { | |
public enum FileType { | |
File = 0, | |
Folder = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Dapper; | |
using Dal; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
// Example implementation of the GenericRepository | |
// Our model. | |
public class Customer { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel; | |
using System.Drawing; | |
using System.Drawing.Drawing2D; | |
using System.Windows.Forms; | |
namespace Maxstupo.Controls { | |
/// <summary> | |
/// Provides a surface suitable for drawing 2D graphics, with zoom and pan functionality. | |
/// </summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# ----- WARNING: This script is a work in progress ------ | |
# | |
# NAS Media Server Install Script | |
# | |
# Installs SSH, Webmin, Samba, and Plex. | |
# Upgrade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity; | |
import android.location.Location; | |
import android.view.View; | |
import com.google.android.gms.ads.AdListener; | |
import com.google.android.gms.ads.AdRequest; | |
import com.google.android.gms.ads.AdView; | |
import com.google.android.gms.ads.MobileAds; | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
const PLUGIN_NAME = 'myplugin'; // The name of the plugin method. (Function name of the plugin) | |
const DATA_NAME = 'jqp_' + PLUGIN_NAME; // The id of the plugin instance attached to each element that this plugin was initialized on. (https://api.jquery.com/data/) | |
const MyPlugin = function ($el, newOptions) { | |
const _this = this; | |
this.$el = $el; // Expose jQuery object this plugin is attached to. | |
/* ---------------- Options Setup --------------- */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
//TODO: Implement the IDisposable interface to allow pooled objects to be freed by the using keyword. | |
public interface IPoolable { | |
void ResetObject(); | |
} | |
public abstract class ObjectPool<T> where T : IPoolable { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The EventSystem provides basic event handling. | |
* | |
* A basic example: | |
* <pre><code> | |
* let es = new EventSystem(); | |
* | |
* let listenerId = es.on('myEvent', function() { // Register a new event listener for the event 'myEvent'. | |
* console.log('Hello World!!'); | |
* }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
using System.Collections; | |
[RequireComponent(typeof(Rigidbody))] | |
[RequireComponent(typeof(CapsuleCollider))] | |
public class MovementController : MonoBehaviour { | |
[Serializable] | |
public enum Movement { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
/* ******************************************************************************************** | |
* Program: MouseLook.cs | |
* Purpose: Allows the mouse to rotate two game object transforms. | |
* Date: 3/04/2017 | |
* Author: Maxstupo | |
* ****************************************************************************************** */ | |
public class MouseLook : MonoBehaviour { |
NewerOlder