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
| module Hex exposing (fromString, toString) | |
| {-| Convert to and from Hex strings. | |
| @docs fromString, toString | |
| -} | |
| import Math exposing ( modBy ) |
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
| module TestMain exposing ( main ) | |
| import Node | |
| import Node.Program as Program exposing ( Program ) | |
| import Stream exposing ( Stream ) | |
| main : Program Model Msg | |
| main = | |
| Program.define |
- Create a bot using @BotFather, get it's token
- Start conversation with bot
- Run following curl command
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
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
| (function() { | |
| var buttonPrefix = "+"; | |
| var buttonTag = "button"; | |
| var categoryTag = "category"; | |
| var commandTag = "cmd"; | |
| var confirmTag = "confirm"; | |
| var displayTag = "display"; | |
| var errorTag = "error"; | |
| var formatTag = "format"; | |
| var linkedTag = "linked"; |
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
| -- Control frame information ----------------------------------------------- | |
| c:0006 p:---- s:0017 e:000016 CFUNC :send_objectspace_dump | |
| c:0005 p:0149 s:0014 e:000013 METHOD /Users/revathskumar/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rbkit/server.rb:71 | |
| c:0004 p:0051 s:0010 e:000009 BLOCK /Users/revathskumar/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rbkit/server.rb:46 [FINISH] | |
| c:0003 p:---- s:0007 e:000006 CFUNC :loop | |
| c:0002 p:0009 s:0004 e:000003 BLOCK /Users/revathskumar/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rbkit/server.rb:42 [FINISH] | |
| c:0001 p:---- s:0002 e:000001 (none) [FINISH] | |
| -- Ruby level backtrace information ---------------------------------------- | |
| /Users/revathskumar/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rbkit/server.rb:42:in `block in 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
| -- The C compiler identification is AppleClang 6.1.0.6020053 | |
| -- The CXX compiler identification is AppleClang 6.1.0.6020053 | |
| -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc | |
| -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works | |
| -- Detecting C compiler ABI info | |
| -- Detecting C compiler ABI info - done | |
| -- Detecting C compile features | |
| -- Detecting C compile features - done | |
| -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ | |
| -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works |
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 Api { | |
| public static $log; | |
| public static function setLogger($func) { | |
| self::$log = &$func; | |
| } | |
| public static function errorLog($st) { |
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 Service { | |
| public function create() { | |
| print "In service create\n"; | |
| //try { | |
| $this->send(); | |
| //} | |
| //catch(ServiceException $e) { | |
| // print "catch service exception in create\n"; |
NewerOlder