Cello - http://libcello.org/home
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
| from functools import reduce | |
| def deepgetattr(obj, attr): | |
| return reduce(getattr, attr.split('.'), obj) |
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
| __author__ = 'Devan' | |
| import csv | |
| import itertools | |
| import timeit | |
| def sum_points(team): | |
| points = 0 | |
| for p in team: | |
| points += p.points |
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 os | |
| import random | |
| import libtcodpy as libtcod | |
| from version import __version__ | |
| import utils | |
| DEFAULT_FOREGROUND = libtcod.white | |
| DEFAULT_BACKGROUND = libtcod.black |
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
| for e in tile.references: | |
| if e.has_flag('immovable'): | |
| e.render(offset_x, offset_y, c_f=libtcod.darkest_gray) | |
| break | |
| else: | |
| Render.draw(x, y, tile.symbol, libtcod.darkest_gray, libtcod.black) |
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 java.awt.event.ActionEvent; | |
| import java.util.ArrayList; | |
| import javax.swing.JOptionPane; | |
| import javafx.application.Application; | |
| import javafx.geometry.Pos; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Button; | |
| import javafx.scene.input.MouseEvent; |
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
| unbindall | |
| bind "0" "slot10" | |
| bind "1" "slot1" | |
| bind "2" "slot2" | |
| bind "3" "slot3" | |
| bind "4" "use weapon_knife; use weapon_hegrenade;" | |
| bind "5" "slot5" | |
| bind "6" "slot6" | |
| bind "7" "slot7" | |
| bind "8" "slot8" |
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
| unbindall | |
| bind "0" "slot10" | |
| bind "1" "slot1" | |
| bind "2" "slot2" | |
| bind "3" "slot3" | |
| bind "4" "use weapon_knife; use weapon_hegrenade;" | |
| bind "5" "slot5" | |
| bind "6" "slot6" | |
| bind "7" "slot7" | |
| bind "8" "slot8" |
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
| { | |
| "autoexec.cfg": "//Rates\r\ncl_cmdrate \"128\"\r\ncl_updaterate \"128\"\r\ncl_interp \"0\"\r\ncl_interp_ratio \"1\"\r\ncl_forcepreload \"1\"\r\ncl_resend \"3\"\r\nrate \"128000\"\r\nnet_allow_multicast \"0\"\r\n \r\n//Sound\r\nwindows_speaker_config \"4\"\r\nsnd_mixahead \"0.05\"\r\nsnd_headphone_pan_exponent \"2\"\r\nsnd_headphone_pan_radial_weight \"2\"\r\nsnd_legacy_surround \"0\"\r\nsnd_mute_losefocus \"1\"\r\ndsp_enhance_stereo \"1\"\r\ncl_mute_all_but_friends_and_party \"0\"\r\nvoice_enable \"1\"\r\nvoice_caster_enable \"1\"\r\nvoice_caster_scale \"0.3\"\r\nvolume \"0.7\"\r\n \r\n//Mouse\r\nm_rawinput \"1\" \r\nm_mouseaccel1 \"0\"\r\nm_mouseaccel2 \"0\"\r\nm_customaccel \"0\"\r\nzoom_sensitivity_ratio_mouse \"1.0\"\r\n \r\n//Hud\r\nhud_showtargetid \"1\"\r\ncl_showloadout \"1\"\r\ncl_autohelp \"0\"\r\ncl_showhelp \"0\"\r\ncl_showpos \"0\"\r\ncl_showfps \"1\"\r\ncl_righthand \"1\"\r\ncl_hud_bomb_under_radar \"1\"\r\ncl_hud_playercount_showcount \"1\"\r\ncl_teammate_colors_show \"1\"\r\ncl_show_cla |
| name | number | reason |
|---|---|---|
| SIGHUP | 1 | Hangup (POSIX) |
| SIGINT | 2 | Terminal interrupt (ANSI) |
| SIGQUIT | 3 | Terminal quit (POSIX) |
| SIGILL | 4 | Illegal instruction (ANSI) |
| SIGTRAP | 5 | Trace trap (POSIX) |
| SIGIOT | 6 | IOT Trap (4.2 BSD) |
| SIGBUS | 7 | BUS error (4.2 BSD) |
| SIGFPE | 8 | Floating point exception (ANSI) |
OlderNewer