Skip to content

Instantly share code, notes, and snippets.

View b-cancel's full-sized avatar

Bryan Cancel b-cancel

View GitHub Profile
@collinjackson
collinjackson / main.dart
Last active November 29, 2022 06:38
Demonstrates scrolling a focused widget into view
// Copyright 2017, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'package:meta/meta.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
/// A widget that ensures it is always visible when focused.
import 'package:flutter/material.dart';
class TestPage2 extends StatefulWidget {
@override
_TestPageState2 createState() => new _TestPageState2();
}
class _TestPageState2 extends State<TestPage2> {
@ProfPollati
ProfPollati / LaunchDuplicator.cs
Created November 5, 2016 19:45
Unity Editor script for class used for launching a duplicate instance of the project. Useful for testing multiplayer.
#if UNITY_EDITOR
// You'll need to include compiler conditions to only compile this if this is going through the Unity Editor, otherwise, you will not be able to compile a Build!
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.SceneManagement;
using System.IO;
using System.Diagnostics;
public class LaunchDuplicator : EditorWindow {
@SeeringPhil
SeeringPhil / Player1CtrlRemap.cs
Last active April 26, 2017 22:35
This is the class we're using for being able to modify the first player's controls in game and for the assigned controls to persist across scenes ( thus the keycodes being static.)
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class Player1CtrlRemap : MonoBehaviour
{
// Initialisation of player's controls.
public GameObject upBtn, downBtn, lftBtn, rightBtn;
public btnInit bI;
@FVSHaLuan
FVSHaLuan / StartWithSpecificScene.cs
Last active April 26, 2017 21:34
**Function: - Add menu DoC/Start with first game scene to Unity3D editor main menus. - The menu starts playing your game from the specified scene and brings you back to the scene you were editting when stop playing
using UnityEngine;
using System.Collections;
using UnityEditor;
/* by FVS - Ha Luan */
public class StartWithSpecificScene : Editor
{
const string settingKey = "FVSHaluanStartWithSpecificScene";
const string firstScenePath = "Assets/Scenes/Login.unity";
@allfake
allfake / FadeInOut.cs
Created August 4, 2015 11:10
From http://answers.unity3d.com/questions/119918/transitions-between-changing-scenes.html change to only fade, add hook function, you need to add image in gameObject.
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System.Collections;
using System.Reflection;
using System;
public class FadeInOut : MonoBehaviour {
[Serializable]
@mandarinx
mandarinx / NineSliceScaling.cs
Last active July 22, 2022 02:43
9 slice scaling with a mesh in Unity3D
using UnityEngine;
// Nine slice scaling using a Mesh.
// Original code by Asher Vollmer
// https://twitter.com/AsherVo
// http://ashervollmer.tumblr.com
// Modifications by Thomas Viktil
// https://twitter.com/mandarinx
// http://ma.ndar.in/
using System;
using System.IO;
using UnityEditor;
public static class SceneCreator
{
[MenuItem( "Assets/Create/Empty Scene" )]
private static void CreateEmptyScene()
{
CreateScene(
@sheharyarn
sheharyarn / YoutubeDownloader.md
Last active October 15, 2022 06:26
Download Videos from Youtube in (Ruby || PHP)

Youtube Downloaders

Download Youtube Videos using Ruby or PHP

Just copy the appropriate script, provide the video_id and run. It will list download links for different qualities and streams.

:P

@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active May 9, 2024 13:54
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\