Skip to content

Instantly share code, notes, and snippets.

View benmcnelly's full-sized avatar
🎯
Focusing

Ben McNelly benmcnelly

🎯
Focusing
View GitHub Profile
[Setup]
AppName=BaconPancakes
AppVersion=1.0
DefaultDirName={pf}\BaconPancakes
DisableProgramGroupPage=yes
UninstallDisplayIcon={app}\BaconPancakes.exe
OutputDir=userdocs:BaconPancakes
[Files]
Source: "BaconPancakes.exe"; DestDir: "{app}"
Verifying that +benmcnelly is my Bitcoin username. You can send me #bitcoin here: https://onename.io/benmcnelly
+10-1 Beneath the Surface
+10-1 Break the Rules
+10-1 Contrast
+10-1 Control More Than One
+10-1 Death is Useful
+10-1 Deep Space
+10-1 Everything Breaks
+10-1 Everything is Connected
+10-1 Generations
Rectangle {
focus: true
Keys.onReleased: {
if (event.key == Qt.Key_Back) {
console.log("Back button pressed, maybe I should go back instad of exit the app")
// here is where I would call the function that navigates to the previous frame if there was one, and if it at first frame then exit app...
event.accepted = true
}
}
@benmcnelly
benmcnelly / gist:7258571
Created October 31, 2013 22:56
Get the key...
// set some variables to use later
var keys = 0;
//Get THEKEY
function OnTriggerEnter(theCollision : Collider){
if(theCollision.gameObject.name == "THEKEY"){
keys+=1;
Debug.Log(keys);
# Give credits to referrer
if credit.number >= settings.REFERRAL_AMOUNT and not profile.referral_claimed:
ref_id = profile.referred_by
if ref_id:
# Can't earn credits for this referree again
profile.referral_claimed = True
profile.save()
referrer = UserProfile.objects.get(referral_id=ref_id)
referrer.balance += 10
Msg 8951, Level 16, State 1, Line 2
Table error: table 'Client_Date_Cache' (ID 10483116). Data row does not have a matching index row in the index 'IX_Client_Date_Cache$principal__client_KEY$entry_date$client_KEY@@@' (ID 3). Possible missing or invalid keys for the index row matching:
Msg 8955, Level 16, State 1, Line 2
Data row (1:42938:11) identified by (entry_date = '2013-03-22 00:00:00.000' and client_KEY = 7907 and client_date_cache_KEY = 82152) with index values 'principal__client_KEY = 7907 and entry_date = '2013-03-22 00:00:00.000' and client_KEY = 7907 and client_date_cache_KEY = 82152'.
There are 44212 rows in 1043 pages for object "Client_Date_Cache".
var speed : float = 6.0;
var jumpSpeed : float = 8.0;
var gravity : float = 20.0;
private var moveDirection : Vector3 = Vector3.zero;
function Update() {
var controller : CharacterController = GetComponent(CharacterController);
if (controller.isGrounded) {
// WTF grounded, so... recalculate?
// freaking move
moveDirection = Vector3(Input.GetAxis("Horizontal"), 0,
@benmcnelly
benmcnelly / EPICSERVE'S MOM
Created October 8, 2012 17:47
EPICSERVE'S MOM
<h2>
Web Site Terms and Conditions of Use
</h2>
<h3>
1. Terms
</h3>
<p>