Merged into entware-ng project
https://github.com/Entware-ng/Entware-ng
Deprecated
These instructions are for ARM devices only. For mipsel devices, then see the official entware readme instead at: https://github.com/Entware/entware
| function get_avatar_from_service(service, userid, size) { | |
| // this return the url that redirects to the according user image/avatar/profile picture | |
| // implemented services: google profiles, facebook, gravatar, twitter, tumblr, default fallback | |
| // for google use get_avatar_from_service('google', profile-name or user-id , size-in-px ) | |
| // for facebook use get_avatar_from_service('facebook', vanity url or user-id , size-in-px or size-as-word ) | |
| // for gravatar use get_avatar_from_service('gravatar', md5 hash email@adress, size-in-px ) | |
| // for twitter use get_avatar_from_service('twitter', username, size-in-px or size-as-word ) | |
| // for tumblr use get_avatar_from_service('tumblr', blog-url, size-in-px ) | |
| // everything else will go to the fallback | |
| // google and gravatar scale the avatar to any site, others will guided to the next best version |
| /* | |
| * BOT for 10fastfingers, automatic typing with adjustable speed | |
| * ================================================================ | |
| * | |
| * bored in my apartment and decided to hack this game: http://indonesian-speedtest.10fastfingers.com/ | |
| * just start the game, when you're ready to type, DON'T TYPE ANYTHING, open up | |
| * your Developer Tools in Chrome (CTRL+SHIFT+J) and click Console tab, and | |
| * then paste the whole code below, then press enter, and enjoy the show. | |
| * | |
| * twitter.com/kecebongsoft |
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
| function onResponse(e) { | |
| var formResponse = e.response; | |
| var itemResponses = formResponse.getItemResponses(); | |
| var data = {}; | |
| for (var j = 0; j < itemResponses.length; j++) { | |
| var itemResponse = itemResponses[j]; | |
| var key = itemResponse.getItem().getTitle(); | |
| var value = itemResponse.getResponse(); | |
| data[key] = value; | |
| } |
| // number to string, pluginized from http://stackoverflow.com/questions/5529934/javascript-numbers-to-words | |
| window.num2str = function (num) { | |
| return window.num2str.convert(num); | |
| } | |
| window.num2str.ones=['','one','two','three','four','five','six','seven','eight','nine']; | |
| window.num2str.tens=['','','twenty','thirty','forty','fifty','sixty','seventy','eighty','ninety']; | |
| window.num2str.teens=['ten','eleven','twelve','thirteen','fourteen','fifteen','sixteen','seventeen','eighteen','nineteen']; |
Merged into entware-ng project
https://github.com/Entware-ng/Entware-ng
Deprecated
These instructions are for ARM devices only. For mipsel devices, then see the official entware readme instead at: https://github.com/Entware/entware