mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
Add license
This commit is contained in:
22
LICENSE
Normal file
22
LICENSE
Normal file
@@ -0,0 +1,22 @@
|
||||
MIT/X Consortium License
|
||||
|
||||
© 2011 Kai Hendry <hendry@iki.fi>
|
||||
© 2011 Jamie Kitson <jamie@kitten-x.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation
|
||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
@@ -1,6 +1,9 @@
|
||||
# <http://greptweet.com>
|
||||
|
||||
* Authentication free, using <http://dev.twitter.com/doc/get/statuses/user_timeline>
|
||||
* Aim to [suckless](http://suckless.org/) and keep LOC low
|
||||
* Encourage folks to use `fetch-tweets.sh` themselves and get into shell ;)
|
||||
* Dependencies: curl, libhtml-parser-perl (to decode HTML entities), xmlstarlet, coreutils
|
||||
|
||||
# Known issues
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ T("#users").hovercards({ linkify: false });
|
||||
});
|
||||
</script>
|
||||
|
||||
<p><a href="https://github.com/kaihendry/Greptweet">Please contribute to the public domain source on Github!</a></p>
|
||||
<p><a href="https://github.com/kaihendry/Greptweet">Please contribute to the source on Github!</a></p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
1
main.js
1
main.js
@@ -3,6 +3,7 @@ function grep(query) {
|
||||
$.getJSON("/u/" + NAME + "/grep.php?q=" + query + "&jsoncallback=?", function(data) {
|
||||
var results = "<p>Searched for: " + query + "</p><ol>";
|
||||
for (i in data) {
|
||||
// TODO, fix bug: https://twitter.com/#!/pixelbeat_/status/5120018968
|
||||
tweet = data[i].split('|');
|
||||
if (tweet.length > 2) {
|
||||
results += "<li><a href=\"http://twitter.com/" + NAME + "/status/" + tweet[0] + "\">" + tweet[2] + "</a></li>"; // With datetime
|
||||
|
||||
Reference in New Issue
Block a user