This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list := List clone | |
while (list count() < 6, | |
n := Number random(1, 50) floor | |
if( (list contains( n ) ) == Nil, //true if list doesn't contain n | |
list add( n ) | |
) | |
) | |
Became: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:activity="http://activity | |
strea.ms/spec/1.0/" xmlns:georss="http://www.georss.org/georss"> | |
<link rel="self" type="application/atom+xml" href="http://buzz.googleapis.com/feeds/105037104815911535953/public/posted"/> | |
<link rel="hub" href="http://pubsubhubbub.appspot.com/"/> | |
<link rel="next" href="http://buzz.googleapis.com/feeds/105037104815911535953/public/posted?c=CKKwyfHgoaEC"/> | |
<title type="text">Google Buzz</title> | |
<updated>2010-05-02T22:03:36.845Z</updated> | |
<id>tag:google.com,2009:buzz-feed/public/posted/105037104815911535953</id> | |
<generator>Google - Google Buzz</generator> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<entry><title type='html'>Buzz by Adewale Oshineye from Flickr</title><summary type='text'>Dignity</summary><published>2010-05-15T18:54:47.000Z</published><updated>2010-05-15T18:56:28.646Z</updated><id>tag:google.com,2009:buzz/z12kszih2ki3izjad04cjldqhk2ffnwpzys0k</id><link rel='alternate' type='text/html' href='http://www.google.com/buzz/105037104815911535953/ahZmesjj576/Dignity'/><author><name>Adewale Oshineye</name><uri>http://www.google.com/profiles/adewale</uri></author><content type='html'><div>Dignity</div></content><link rel='enclosure' href='http://www.flickr.com/photos/38234898@N00/4609072165' type='image/jpeg' title='Dignity'/><media:content url='http://www.flickr.com/photos/38234898@N00/4609072165' type='image/jpeg' medium='image'><media:title>Dignity</media:title><media:player url='http://farm2.static.flickr.com/1431/4609072165_bdc218096f_o.jpg' height='4256' width='2832'/></media:content><activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb><activity:object><activity: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Simple searching in Buzz using the Python client | |
import buzz | |
b = buzz.Client() | |
r = b.search('hello') | |
print r.data[1].content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2010 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Getting real: http://www.amazon.com/Getting-Real-smarter-successful-application/dp/0578012812/ | |
Rework: http://www.amazon.com/Rework-Jason-Fried/dp/0307463745 | |
Growing object oriented code guided by tests: http://www.amazon.com/Growing-Object-Oriented-Software-Guided-Tests/dp/0321503627 | |
Living with complexity: http://www.amazon.com/Living-Complexity-Donald-Norman/dp/0262014866 | |
Background: | |
http://en.wikipedia.org/wiki/GOMS | |
http://www.usabilityfirst.com/usability-methods/hci-design-approaches/ | |
http://www.alistapart.com/articles/can-you-say-that-in-english-explaining-ux-research-to-clients/ | |
http://www.thinkoutsidein.com/blog/about/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var moment = { | |
'type' : 'http://schemas.google.com/AddActivity', | |
'target' : { | |
'url' : 'https://developers.google.com/+/web/snippet/examples/widget' | |
} | |
}; | |
var request = gapi.client.request({ | |
'path' : 'plus/v1/people/me/moments/vault', | |
'method' : 'POST', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Google+: | |
<!-- Place this tag in your head or just before your close body tag. --> | |
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> | |
<!-- Place this tag where you want the widget to render. --> | |
<div class="g-post" data-href="https://plus.google.com/105037104815911535953/posts/UmRCitJhbGd"></div> | |
Facebook: | |
<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> | |
<div class="fb-post" data-href="https://www.facebook.com/photo.php?fbid=593929277310086&set=a.229737897062561.56301.193742123995472&type=1" data-width="550"><div class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/photo.php?fbid=593929277310086&set=a.229737897062561.56301.193742123995472&type=1">Post</a> by <a href="https://www.facebook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PicasaWeb: | |
<table style="width:194px;"><tr><td align="center" style="height:194px;background:url(https://picasaweb.google.com/s/c/transparent_album_background.gif) no-repeat left"><a href="https://picasaweb.google.com/105037104815911535953/DesignMuseum?authuser=0&feat=embedwebsite"><img src="https://lh5.googleusercontent.com/-EOtNtxZAp5A/URhEepxTTlE/AAAAAAABqYg/o1jutbRIaj4/s160-c/DesignMuseum.jpg" width="160" height="160" style="margin:1px 0 0 4px;"></a></td></tr><tr><td style="text-align:center;font-family:arial,sans-serif;font-size:11px"><a href="https://picasaweb.google.com/105037104815911535953/DesignMuseum?authuser=0&feat=embedwebsite" style="color:#4D4D4D;font-weight:bold;text-decoration:none;">Design Museum</a></td></tr></table> | |
Friendfeed: | |
<script type="text/javascript" src="http://friendfeed.com/embed/widget/ade?v=3&width=200"></script><noscript><a href="http://friendfeed.com/ade"><img alt="View my FriendFeed" style="border:0;" src="http://friendfeed.com/embed/widget/ade?v=3&width=200&fo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SingletonExample { | |
private static SingletonExample instance = new SingletonExample(); | |
public static SingletonExample getInstance() { | |
return instance; | |
} | |
private SingletonExample() { | |
//Make sure they can't create another instance | |
} | |
OlderNewer