Skip to content

Instantly share code, notes, and snippets.

@yaroslav-ilin
yaroslav-ilin / gist:1706499
Created January 30, 2012 20:32
Google Picasa Web Albums read only API PHP Parser
// 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' );
@yaroslav-ilin
yaroslav-ilin / Gemfile
Created February 13, 2012 07:04
Universal Rails Gemfile
source :rubygems
gem 'russian'
gem 'rails', '3.2.1'
group :development, :test do
platforms :ruby do
gem 'sqlite3'
end
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
@yaroslav-ilin
yaroslav-ilin / md-autocomplete.ts
Created June 29, 2016 17:20 — forked from vladimir-ivanov/md-autocomplete.ts
angular2 material autocomplete - md-autocomplete widget (without md-virtual-repeat) to work with ng2-material
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"
@yaroslav-ilin
yaroslav-ilin / README.md
Last active March 8, 2021 06:31
Running node-maxmind in browser