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
| private function computeEAN($asin) { | |
| if (strlen($asin) == 13) { | |
| $odd = 0; | |
| $even = 0; | |
| $asinChar = str_split("978" . $asin); | |
| for ($i = 0; $i < 12; $i++) { | |
| if (($i % 2) !== 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
| rxvt.background: #000000 | |
| rxvt.foreground: #D3D2D3 | |
| rxvt.color0: #000000 | |
| rxvt.color1: #FF7768 | |
| rxvt.color2: #ABFA68 | |
| rxvt.color3: #FFFD88 | |
| rxvt.color4: #98D0FE | |
| rxvt.color5: #FF85FD | |
| rxvt.color6: #CACBFE | |
| rxvt.color7: #EFEFEF |
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
| $('a[rel=external]').on('click', function (e) { | |
| e.preventDefault(); | |
| window.open($(this).attr('href')); | |
| }); |
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
| #! /usr/bin/env python | |
| """Yama's A.T.S.P.-Bot for IRC-Tasks""" | |
| import irc.bot | |
| import irc.strings | |
| import re | |
| import logging | |
| from threading import Timer | |
| from irc.client import ip_numstr_to_quad, ip_quad_to_numstr | |
| irc.client.ServerConnection.buffer_class.errors = 'ignore' |
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
| <?php | |
| class Foo { | |
| private $prop = 'Foo Bar'; | |
| private $array = array(1, 2, 3); | |
| public function foo() | |
| { |
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
| #!/usr/bin/env python | |
| from threading import Thread, Event | |
| from time import sleep | |
| event = Event() | |
| def do_command(): | |
| t = Thread(target=bctest) | |
| t.start() |
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
| 1 | Iron Pickaxe | |
|---|---|---|
| 2 | Dirt Block | |
| 3 | Stone Block | |
| 4 | Iron Broadsword | |
| 5 | Mushroom | |
| 6 | Iron Shortsword | |
| 7 | Iron Hammer | |
| 8 | Torch | |
| 9 | Wood | |
| 10 | Iron Axe |
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 random import random | |
| from ev import Object | |
| class Rose(Object): | |
| def at_object_creation(self): | |
| self.db.desc = "This is a pretty rose with thorns. Please be careful." | |
| self.db.amount = 1 | |
| def at_get(self, getter): | |
| if random() > 0.50 and getter.db.health > 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
| --- /usr/portage/net-libs/libzapojit/libzapojit-0.0.2.ebuild 2013-02-03 00:31:24.000000000 +0100 | |
| +++ /usr/portage/net-libs/libzapojit/libzapojit-0.0.3.ebuild 2013-12-08 20:31:26.000000000 +0100 | |
| @@ -1,10 +1,9 @@ | |
| # Copyright 1999-2013 Gentoo Foundation | |
| # Distributed under the terms of the GNU General Public License v2 | |
| -# $Header: /var/cvsroot/gentoo-x86/net-libs/libzapojit/libzapojit-0.0.2.ebuild,v 1.8 2013/02/02 23:05:18 ago Exp $ | |
| +# $Header: /var/cvsroot/gentoo-x86/net-libs/libzapojit/libzapojit-0.0.3.ebuild,v 1.4 2013/12/08 19:26:44 pacho Exp $ | |
| EAPI="5" | |
| GCONF_DEBUG="no" |
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
| <Registered[server.registered] (<TCPServer/server 31940:MainThread (queued=0) [S]>, <Server/* 31940:MainThread (queued=3) [R]> )> | |
| <Registered[*.registered] (<Debugger/* 31940:MainThread (queued=0) [S]>, <Server/* 31940:MainThread (queued=4) [R]> )> | |
| <Started[*.started] (<Server/* 31940:MainThread (queued=3) [R]> )> | |
| <Registered[select.registered] (<Select/select 31940:MainThread (queued=0) [S]>, <TCPServer/server 31940:MainThread (queued=0) [S]> )> | |
| <Ready[server.ready] (<TCPServer/server 31940:MainThread (queued=0) [S]>, ('0.0.0.0', 8000) )> | |
| <Read[server._read] (<socket._socketobject object at 0x7f4526e2c440> )> | |
| <Connect[server.connect] (<socket._socketobject object at 0x7f4526e2c750>, '127.0.0.1', 9000 )> |
OlderNewer