Skip to content

Instantly share code, notes, and snippets.

View benkimball's full-sized avatar

Ben Kimball benkimball

View GitHub Profile
@angstyloop
angstyloop / DraggableSprite.gd
Last active December 24, 2023 23:11
A GDScript example - a single node game that lets you move a sprite around with the mouse, with or without having to hold the mouse button down. Tested with the standard edition (no C# support) of Godot v3.5.1
# DESCRIPTION
#
# This is a simple Godot game that lets you move a sprite around in two ways:
#
# * by clicking, and then without moving, releasing. Then you can drag
# the sprite around without holding down the mouse button. When you
# want to drop the sprite, release the mouse button.
#
# * by clicking, and then while holding the mouse button down, dragging
# the sprite to where you want it by moving the mouse. When you want
@davidkpiano
davidkpiano / app.js
Created September 4, 2015 14:41
Simple way to namespace React components
import React from 'react';
import * as My from './components/my-components.js';
export default class App extends React.Component {
render() {
return (
<div>
<My.Foo />
<My.Bar />
@astroud
astroud / morse_code.rb
Created December 13, 2011 01:33
More first grade fun learning Ruby
# Inspired by https://gist.github.com/1172097
alphabet = Hash[
:a => "beep. beeeeep.",
:b => "beeeeep. beep. beep. beep.",
:c => "beeeeep. beep. beeeeep. beep.",
:d => "beeeeep. beep. beep.",
:e => "beep.",
:f => "beep. beep. beeeeep. beep.",
:g => "beeeeep. beeeeep. beep.",