outdated, someone else is updating the list now -> https://gist.github.com/Fobxx/107e2bad2bf7312cd49431c696aac912
/* | |
* Unity Batch Burner: A script designed to reduce static mesh draw calls automatically in scenes | |
* with a large amount of static geometry entities. | |
* | |
* Copyright 2016-2017 Will Preston & Die-Cast Magic Studios, LLC. | |
* | |
* 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 | |
* |
// Unity C# Cheat Sheet | |
// I made these examples for students with prior exerience working with C# and Unity. | |
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting |
void GetStreamingAssetsPath(string fileName) | |
{ | |
#if UNITY_EDITOR | |
dbPath = string.Format(@"Assets/StreamingAssets/{0}", fileName); | |
#else | |
// check if file exists in Application.persistentDataPath | |
var filepath = string.Format("{0}/{1}", Application.persistentDataPath, fileName); | |
if (!File.Exists(filepath)) |
using UnityEngine; | |
using System.IO; | |
using System; | |
using System.Linq; | |
using System.Text; | |
using System.Collections.Generic; | |
using System.Collections; | |
public class FFMpegYUV4Texture : MonoBehaviour | |
{ |
using UnityEngine; | |
using System.Collections; | |
using Coherent.UI; | |
using System.IO; | |
using System; | |
using System.Runtime.InteropServices; | |
[RequireComponent(typeof(CoherentUIView))] | |
[RequireComponent(typeof(AudioSource))] | |
unsafe public class CoherentAudioPlayerFilter : MonoBehaviour |
var client = require('firebase-tools'); | |
function transfer(path, options) { | |
var fromDb = options.fromDb; | |
var toDb = options.toDb; | |
var output = options.output; | |
client.data.get(path, { firebase: fromDb, output: output }) | |
.then(function(data) { | |
return client.data.set(path, output, { firebase: toDb, confirm: true }); | |
}) |
var fs = require('fs'); | |
fs.readFile('subtitle.srt', function(error, data) { | |
if(error) | |
throw error; | |
var text = data.toString(); | |
var lines = text.split('\n'); | |
var output = []; |
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j