Skip to content

Instantly share code, notes, and snippets.

View marcolink's full-sized avatar
🪐

Marco Link marcolink

🪐
View GitHub Profile
git tag | xargs git tag -d
@marcolink
marcolink / animated-background.html
Created September 5, 2018 15:01
animated-background.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Canvas - animated gradient Background</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="row mt-5">
@marcolink
marcolink / npm-cheatsheet.md
Last active July 19, 2018 18:34
npm cheatsheet

NPM Cheatsheet

Commands

  • --dry-run

package.json

publish with version bump

@marcolink
marcolink / cheatsheet.gradle
Last active February 23, 2018 10:12
Gradle cheatsheet
// build local snapshot
gw snapshot -x check -x groovydoc -x githubPublish -x javadoc -x publishGroovydocs
// use local snapshot
buildscript {
repositories {
mavenLocal()
}
dependencies {
classpath "net.wooga.gradle:atlas-paket:0.11.0-SNAPSHOT"
@marcolink
marcolink / AndroidPluginTargets.md
Last active July 4, 2017 10:24
Android Plugin Targets
Path Platform CPU OS
Plugins/Native.Android/libs/armeabi-v7a Android ARMv7
Plugins/Native.Android/libs/x86 Android x86
Plugins/Native.x64 Editor/Standalone x86_64 Any OS
Plugins/Native.x86 Editor/Standalone x86 Any OS
@marcolink
marcolink / .gitignore
Last active July 4, 2017 10:24
Unity Project .gitignore
**/[Ll]ibrary/
**/[Tt]emp/
**/[Oo]bj/
**/[Bb]uild/
**/[Bb]uilds/
**/[Dd]ebug/
**/[Rr]elease/
**/[Bb]in/
**/Assets/AssetStoreTools*
@marcolink
marcolink / PaketDependencyManagementForUnity3d.md
Last active August 23, 2017 12:36
Paket Dependency Management For Unity

Paket Dependency Management For Unity

We use a combination of Paket and Paket.Unity3D in our projects for internal dependency management. There is also a wrapper called Wooget for both, but since we don't maintain it anymore, i will not cover it.

We always need 2 steps to update depenencies:

  • Paket to Install all defined depenency for your project.
  • Paket.Unity3D to add them to the Unity Project.

The Documentation is based on the recommended project structure.

@marcolink
marcolink / gist:a0c55615d845697983bf
Last active August 29, 2015 14:24
UIButton with centered text and right aligned icon
UIImage *image = [UIImage new]; // your button icon image
self.button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
[self.button setImage:image forState:UIControlStateNormal];
[self.button setImage:image forState:UIControlStateHighlighted];
self.button.imageEdgeInsets = UIEdgeInsetsMake(0, self.button.frame.size.width - image.size.width, 0, 0);
self.button.titleEdgeInsets = UIEdgeInsetsMake(0, 0, 0, image.size.width);