User Tools

Site Tools


c:twitter.awk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
c:twitter.awk [2011/07/26 02:03] neutronscottc:twitter.awk [2023/11/04 22:30] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Twitter.awk ====== ====== Twitter.awk ======
  
-[[http://twitter.com/neutronbot|@neutronbot]] on twitter is a bot using the streaming API. I like to right IRC bots when I learn a new language. I did that, then realized this streaming API. Now I can act like twitter is real-time chat and make a bot. :)+[[http://twitter.com/neutronbot|@neutronbot]] on twitter is a bot using the streaming API. I like to write IRC bots when I learn a new language. I [[http://scottn.us/code/view.php?f=irc.awk|did that]], then realized this streaming API. Now I can act like twitter is real-time chat and make a bot. :)
  
 ===== Challenges ===== ===== Challenges =====
Line 23: Line 23:
 IT WORKS! It's not for hashing a ton of files, just for OAuth header so speed is like... pfft whatever. IT WORKS! It's not for hashing a ton of files, just for OAuth header so speed is like... pfft whatever.
  
-View that alone: http://san.aq/sha1+It was mostly creating functions that did binary operations using strings. Then a direct implement of the wikipedia pseudo-code, but I had to refer to the actual FIPS specification to realize some things. It almost worked on the first go. Then a bug with padding (oops, pad -17 bytes? how'd I end up with that math hah).
  
 +Then a quick base64(), which wasn't hard to debug. I just was missing '=' at the end.
 + 
 ===== Source ===== ===== Source =====
  
-The code is viewable [[http://scottn.us/code/view.php?f=twitter.awk|here]]. +Decided to start using my github account and have been pushing the code to: http://github.com/neutronscott/Twitter.awk
c/twitter.awk.1311645831.txt.gz · Last modified: 2023/11/04 22:29 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki