Skip to content

Instantly share code, notes, and snippets.

@nemotoo
nemotoo / Gen.cs
Created August 3, 2017 13:34
Skeleton of mpc
#pragma warning disable 618
#pragma warning disable 612
#pragma warning disable 414
#pragma warning disable 168
namespace MessagePack.Resolvers
{
using System;
using MessagePack;
#!/bin/sh
wget ftp://ftp.perforce.com/perforce/r16.1/bin.linux26armhf/p4d
chmod +x p4d
sudo mv p4d /usr/local/bin
sudo adduser perforce
sudo mkdir /perforce_depot
sudo chown perforce /perforce_depot
sudo mkdir /var/log/perforce
sudo chown perforce /var/log/perforce
@nemotoo
nemotoo / .gitattributes
Last active October 14, 2024 00:03
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@nemotoo
nemotoo / .gitignore
Created April 13, 2016 04:29
.gitignore for Unity3D
# ============ #
# OS generated #
# ============ #
.DS_Store*
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
[Tt]humbs.db
@nemotoo
nemotoo / SelfSizingTextViewTableCell.swift
Created July 29, 2015 11:56
SelfSizing TableViewCell with Swift 2.0 Beta Raw
// References
// https://github.com/damienpontifex/BlogCodeSamples/tree/master/SelfSizingTextViewTableCell
// https://pontifex.azurewebsites.net/self-sizing-uitableviewcell-with-uitextview-in-ios-8/
//
// In UITableViewController
// tableView.rowHeight = UITableViewAutomaticDimension;
// tableView.estimatedRowHeight = DefaultCellHeight;
//
import UIKit
@nemotoo
nemotoo / SeamlessInfiniteTableViewController.swift
Last active August 29, 2015 14:19
Seamless Infinite UITableView with double page data
// Reference - Main : http://stackoverflow.com/questions/18164519/uitableview-inserting-section-at-top-while-scrolling
// Reference - Sub : http://bharath2020.in/2012/10/01/uitableview-tricks-part-2-infinite-scrolling/
import UIKit
class SeamlessInfiniteTableViewController: UITableViewController {
/* Variables */
let FetchingCount = 10 //WARNING : Below 10 is not recommened and tested
var mergedSections:[[String]] = [] //WARNING : Every section has more than 0 row