Skip to content

Instantly share code, notes, and snippets.

View morulus's full-sized avatar
💭
Hey, I have publish new package press-any-key on npmjs

Vladimir Kalmykov morulus

💭
Hey, I have publish new package press-any-key on npmjs
View GitHub Profile
@morulus
morulus / git-tag-delete-local-and-remote.sh
Created May 25, 2019 18:39 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@morulus
morulus / DragPiece2D.cs
Last active May 7, 2019 00:30 — forked from nucleartide/DragPiece2D.cs
A C# script for Unity that allows you to drag 2D rigidbodies around. Works with Unity 4.3's Box2D wrappers (support 2019 2.0)
// Tested with Unity Personal 2019.2.0a14
using UnityEngine;
using System.Collections;
public class DragPiece2D : MonoBehaviour
{
public float dampingRatio = 5.0f;
public float frequency = 2.5f;
public float drag = 10.0f;
public float angularDrag = 5.0f;