Add license

This commit is contained in:
Kai Hendry
2011-11-13 22:38:14 +01:00
parent 28b86ee989
commit a2496a5aa4
4 changed files with 27 additions and 1 deletions

22
LICENSE Normal file
View 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.

View File

@@ -1,6 +1,9 @@
# <http://greptweet.com> # <http://greptweet.com>
* Authentication free, using <http://dev.twitter.com/doc/get/statuses/user_timeline> * 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 # Known issues

View File

@@ -61,7 +61,7 @@ T("#users").hovercards({ linkify: false });
}); });
</script> </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> </body>
</html> </html>

View File

@@ -3,6 +3,7 @@ function grep(query) {
$.getJSON("/u/" + NAME + "/grep.php?q=" + query + "&jsoncallback=?", function(data) { $.getJSON("/u/" + NAME + "/grep.php?q=" + query + "&jsoncallback=?", function(data) {
var results = "<p>Searched for: " + query + "</p><ol>"; var results = "<p>Searched for: " + query + "</p><ol>";
for (i in data) { for (i in data) {
// TODO, fix bug: https://twitter.com/#!/pixelbeat_/status/5120018968
tweet = data[i].split('|'); tweet = data[i].split('|');
if (tweet.length > 2) { if (tweet.length > 2) {
results += "<li><a href=\"http://twitter.com/" + NAME + "/status/" + tweet[0] + "\">" + tweet[2] + "</a></li>"; // With datetime results += "<li><a href=\"http://twitter.com/" + NAME + "/status/" + tweet[0] + "\">" + tweet[2] + "</a></li>"; // With datetime