Skip to content

Instantly share code, notes, and snippets.

@Matthew-J-Spencer
Matthew-J-Spencer / Dragger.cs
Created January 25, 2021 13:23
A simple drag and drop script for Unity. Follow along: https://youtu.be/Tv82HIvKcZQ
using UnityEngine;
public class Dragger : MonoBehaviour {
private Vector3 _dragOffset;
private Camera _cam;
[SerializeField] private float _speed = 10;
void Awake() {
@RodolfoFerro
RodolfoFerro / image-classification-in-tensorflow.ipynb
Created October 30, 2020 04:27
Image Classification in TensorFlow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RodolfoFerro
RodolfoFerro / building-your-first-neural-network-on-tensorflow.ipynb
Created October 23, 2020 09:19
Building your First Neural Network on TensorFlow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@meshula
meshula / 3d-formats.md
Last active September 2, 2025 18:33
3d file formats, last mile vs. interchange
@eevee
eevee / 1-computer-talk.bas
Created April 6, 2016 16:25
VTech PreComputer 1000 example programs
10 B$="PRE-COMPUTER"
20 PRINT "I AM "; B$
30 INPUT "WHAT IS YOUR NAME"; N$
40 PRINT "HELLO "; N$
50 INPUT "HOW OLD ARE YOU"; A
60 PRINT "SO "; N$; " YOU ARE"
70 PRINTA; "YEARS OLD"
80 PRINT "I HOPE" : PRINT "WE HAVE FUN!!"
90 END
@unbracketed
unbracketed / branch-fu.md
Created April 7, 2015 17:49
Moving commits between branches

Example: Moving up to a few commits to another branch

Branch A has commits (X,Y) that also need to be in Branch B. The cherry-pick operations should be done in the same chronological order that the commits appear in Branch A.

cherry-pick does support a range of commits, but if you have merge commits in that range, it gets really complicated

git checkout branch-B
git cherry-pick X
git cherry-pick Y
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active April 15, 2026 14:56
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@iainsproat
iainsproat / gist:8378720
Created January 12, 2014 00:11
Git: stash work in progress and move it to a new branch
  • make changes
  • git stash save
  • git checkout -b xxx
  • git stash pop

where xxx is the new branch name

@jupegarnica
jupegarnica / dabblet.css
Created September 4, 2013 11:44 — forked from LeaVerou/dabblet.css
Reversing animation on mouse-out
/**
* Reversing animation on mouse-out
* Issues: Animation will also play in the beginning
*/
@keyframes test {
from { background: white }
to { background: black }
}
@davestewart
davestewart / Convert Selected Elements to Library Items.jsfl
Created March 21, 2013 13:14
Converts selected stage elements to library items, including naming and selecting them in the library. Supports shape objects with multiple members.
/**
* Convert selected elements to library items
* @author Dave Stewart
* @url www.xjsfl.com
*/
// variables
var dom = document, timeline, element, names = [], name;
// create a new movieclip in which to do our conversion