Skip to content

Instantly share code, notes, and snippets.

@dddnuts
dddnuts / wide-table.css
Created February 8, 2016 04:52
Wide table that scrolls when overflows
table {
/* Scroll on overflow */
display: block;
overflow: auto;
}
@dddnuts
dddnuts / Cartfile
Last active March 27, 2023 15:53
Configure Unity Xcode project to be compatible with Swift & Carthage
github "questbeat/QBImagePicker"
@dddnuts
dddnuts / DDDImagePickerPlugin.mm
Created April 30, 2016 14:22
An Unity iOS plugin to pick images from the album.
//
// DDDImagePickerPlugin.mm
// Unity-iPhone
//
// Created by dddnuts on 4/29/16.
//
//
#import <Foundation/Foundation.h>
#import <QBImagePicker/QBImagePicker.h>
@dddnuts
dddnuts / DDDImageConverter.swift
Created May 2, 2016 12:56
Get sharable file URL from PHAsset
//
// DDDImageConverter.swift
// Unity-iPhone
//
// Created by dddnuts on 5/1/16.
//
//
import UIKit
import Photos
@dddnuts
dddnuts / GetHomeTimeline.cs
Last active August 19, 2016 13:36
Log in on Twitter with Fabric Unity SDK
public void GetHomeTimeline()
{
var url = "https://api.twitter.com/1.1/statuses/home_timeline.json";
var session = Twitter.Session;
var oauth = OAuth.OAuthRequest.ForProtectedResource("GET",
Environments.TwitterConsumerKey,
Environments.TwitterConsumerSecret,
session.authToken.token,
session.authToken.secret);
@dddnuts
dddnuts / DDDImageConverter.swift
Last active May 6, 2016 14:42
An Unity iOS Swift plugin to pick images from album
//
// DDDImageConverter.swift
// Unity-iPhone
//
// Created by dddnuts on 5/1/16.
//
//
import UIKit
import Photos
@dddnuts
dddnuts / IUsersAPI.cs
Last active May 17, 2016 16:54
Create stub for a class invokes Action delegate.
using System;
public interface IUsersAPI
{
// GET api/users/:id
void GetUser(int id, Action<string> onSuccess, Action<string> onFailure);
}
@dddnuts
dddnuts / Fastfile
Created June 4, 2016 10:39
Build ipa from Unity project with fastlane
fastlane_version "1.94.0"
default_platform :ios
platform :ios do
desc "Run Unity Editor tests"
lane :test_unit do
unity(
run_editor_tests: true
)