This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (NRG > 6000) # if have over 6000 nrg | |
| [reproduce 50] # reproduce giving 50% to child | |
| [turn -15] # turn 15 degrees after spawning | |
| (EYE.5 > 0) # there is something directly in front of us | |
| shoot(-1) | |
| # follow something | |
| (EYE.4 > 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class A(object): | |
| def foo(self, onearg): | |
| print "foo onearg" | |
| class B(object): | |
| def foo(self, onearg, twoarg): | |
| print "foo onearg twoarg" | |
| b = B() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/python | |
| import random | |
| import copy | |
| import sys | |
| import pprint | |
| def _thesame(items): | |
| return len(set(items)) == 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| switch (frame) { | |
| case 0: | |
| t_frame = 1; | |
| break; | |
| case 15: | |
| t_frame = 2; | |
| break; | |
| case 17: | |
| t_frame = 3; | |
| break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select "originalid","user","date","start","duration","project","activity","ticket","note" | |
| union all | |
| select | |
| concat(u_id,'--',al_timestamp) as "originalid", | |
| u_login, | |
| al_date as "date", | |
| al_from as "start", | |
| al_duration as "duration", | |
| p_name as "project", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| E/AndroidRuntime(25383): FATAL EXCEPTION: main | |
| E/AndroidRuntime(25383): java.lang.ArithmeticException: divide by zero | |
| E/AndroidRuntime(25383): at org.quuux.eyecandy.BurnsView$MovieHolder.draw(BurnsView.java:178) | |
| E/AndroidRuntime(25383): at org.quuux.eyecandy.BurnsView$ImageHolder.onDraw(BurnsView.java:138) | |
| E/AndroidRuntime(25383): at org.quuux.eyecandy.BurnsView.onDraw(BurnsView.java:366) | |
| E/AndroidRuntime(25383): at android.view.View.draw(View.java:13707) | |
| E/AndroidRuntime(25383): at android.view.View.getDisplayList(View.java:12645) | |
| E/AndroidRuntime(25383): at android.view.View.getHardwareLayerDisplayList(View.java:12674) | |
| E/AndroidRuntime(25383): at android.view.View.getHardwareLayer(View.java:12401) | |
| E/AndroidRuntime(25383): at android.view.View.getDisplayList(View.java:12614) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # brand: Philips Universal Code:KISS 1524 | |
| # model no. of remote control: | |
| # devices being controlled by this remote: | |
| # | |
| begin remote | |
| name PhilipsUniversal | |
| bits 16 | |
| flags SPACE_ENC|CONST_LENGTH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| #define kReferenceNoteNumber 69 | |
| #define kReferenceNoteFrequency 440 | |
| #define kNotesPerOctave 12 | |
| @interface MidiParser : NSObject | |
| { | |
| id delegate; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val (electronicItemsGrade, manualItemsGrade) = gradesFromTake(activityTake) | |
| def aggregateGrades(grades: Iterable[Grade]):Grade = { | |
| val (scaledScore, possibleScore) = grades.foldLeft(0d,0d)((a,b) => { | |
| (a._1 + b.getScaledScore, a._2 + b.getPossibleScore) | |
| }) | |
| new Grade(scaledScore, possibleScore, 0d, false) | |
| } | |
| def gradesFromTake(take:ActivityTake) : (Grade, Grade) = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "issuedOn": "2015-11-02T15:44:30.976656", | |
| "uid": "0a0f903c-6a5f-4840-86c7-36b951bfc5fb", | |
| "verify": { | |
| "url": "https://badgr.io/public/assertions/0a0f903c-6a5f-4840-86c7-36b951bfc5fb", | |
| "type": "hosted" | |
| }, | |
| "image": "https://badgr.io/public/assertions/0a0f903c-6a5f-4840-86c7-36b951bfc5fb/image", | |
| "recipient": { | |
| "type": "email", |