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
@lambda func:(lambda *a, **k: (print(repr(a), repr(k)), func(*a, **k))[1]) | |
def my_id_func(*a): | |
return a |
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 random | |
class Sensor(object): | |
OFFSET = 16 | |
def pop_next_pressure_psi_value(self): | |
pressure_telemetry_value = self.sample_pressure() | |
return Sensor.OFFSET + pressure_telemetry_value | |
def __iter__(self): |
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 random | |
class Sensor(object): | |
OFFSET = 16 | |
def pop_next_pressure_psi_value(self): | |
pressure_telemetry_value = self.sample_pressure() | |
return Sensor.OFFSET + pressure_telemetry_value | |
def __iter__(self): |
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
run_test: test | |
./test | |
run: main | |
./main | |
test: test.c person.c person.h | |
gcc -o test test.c person.c | |
build: main.c person.c person.h | |
gcc -o main test.c person.c |
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
int main () | |
{ | |
do | |
{ | |
if(strlen(perstyp[k].namn)==0) break; //räknar ut antal sparade | |
k++; | |
} | |
while(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
class MyClass: | |
value = 0 | |
"""jsspace | |
MyClass.value = 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
App.Router = Em.Router.extend({ | |
root: Em.Route.extend({ | |
route: '/', | |
post: Em.Route.extend({ | |
route: '/:post_user/:post_date', | |
connectOutlets: function (router, context) { | |
// Should give the Post with the user, and the date? | |
} | |
}) | |
}) |
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
RPython traceback: | |
File "jit_metainterp_compile.c", line 21285, in send_loop_to_backend | |
File "jit_backend_x86_assembler.c", line 2598, in Assembler386_assemble_loop | |
File "jit_backend_x86_regalloc.c", line 510, in RegAlloc_prepare_loop | |
File "jit_backend_x86_regalloc.c", line 1162, in RegAlloc__prepare | |
File "jit_backend_x86_regalloc.c", line 4107, in RegAlloc__compute_vars_longevity | |
Fatal RPython error: AssertionError | |
Abort trap: 6 |
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
#I dont have the knowledge to write this but i have the intrest in makeing it writen | |
#This is in no way complainat with the code of the pypy project and is just a sketch. | |
class Backend_string(W_object): | |
_imutable_fields_ = ["_value"] | |
def __init__(w_self, value): | |
w_self._value = value | |
def extend(w_self, w_other_real_string): | |
magic_extend_function(w_self._value, w_other_real_string.unwrap(None)) |
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
School Rumble t2 e18 | |
Naruto e145 |