Spoiler: it's possible.
An experiment of trying to run node-maxmind Node.js library in a browser.
See https://ilin.dk/weblog/maxmind-in-browser for more details about the files below.
See the live version running on https://nilfalse.com/labs/geoip/
Spoiler: it's possible.
An experiment of trying to run node-maxmind Node.js library in a browser.
See https://ilin.dk/weblog/maxmind-in-browser for more details about the files below.
See the live version running on https://nilfalse.com/labs/geoip/
| import {Component, Input, OnInit, Output, EventEmitter} from "angular2/core"; | |
| import {MdList, MdListItem, MdInput, MdInputContainer} from "ng2-material/all"; | |
| @Component({ | |
| selector: "md-autocomplete", | |
| directives: <Array<any>>[MdList, MdListItem, MdInput, MdInputContainer], | |
| template: ` | |
| <md-input-container> | |
| <label>{{placeholder}}</label> | |
| <input md-input type="search" |
| To unfollow everybody on Twitter | |
| - goto https://twitter.com/following | |
| - make sure you haven't loaded mobile version of website | |
| - open up Developer tools (in Chrome press Control+Shift+J) | |
| - put content of unflw.js script into Console and hit Enter | |
| - feel free to close website after some time | |
| source :rubygems | |
| gem 'russian' | |
| gem 'rails', '3.2.1' | |
| group :development, :test do | |
| platforms :ruby do | |
| gem 'sqlite3' | |
| end |
| // Google Picasa Web Albums read only API PHP Parser | |
| // © 2010 inst (http://www.inst.tk/) | |
| function picasa_list_pictures( $user, $album, $thumb_max_size = 200 ) | |
| { | |
| $feed_url = "http://picasaweb.google.com/data/feed/base/user/$user/album/$album"; | |
| $xml = new DOMDocument(); | |
| $xml->load( $feed_url ); | |
| $namespace_media = $xml->getElementsByTagName( 'feed' )->item( 0 )->getAttribute( 'xmlns:media' ); |