Code Examples

Simplest Nicescroll code

All Complex Ecosystems Have Parasites

All Complex Ecosystems Have Parasites

Cory Doctorow

doctorow@craphound.com

For the O’Reilly Emerging Technology Conference

San Diego, California

16 March 2005

This text is dedicated to the public domain, using a Creative Commons public domain dedication:

> Copyright-Only Dedication (based on United States law) > > The person or persons who have associated their
work with this > document (the “Dedicator”) hereby dedicate the entire copyright > in the work of authorship
identified below (the “Work”) to the > public domain. > > Dedicator makes this dedication for the
benefit of the public at > large and to the detriment of Dedicator’s heirs and successors. > Dedicator intends
this dedication to be an overt act of > relinquishment in perpetuity of all present and future rights > under
copyright law, whether vested or contingent, in the Work. > Dedicator understands that such relinquishment of all
rights > includes the relinquishment of all rights to enforce (by lawsuit > or otherwise) those copyrights in
the Work. > > Dedicator recognizes that, once placed in the public domain, the > Work may be freely reproduced,
distributed, transmitted, used, > modified, built upon, or otherwise exploited by anyone for any > purpose, commercial
or non-commercial, and in any way, including > by methods that have not yet been invented or conceived.

AOL hates spam. AOL could eliminate nearly 100 percent of its subscribers’ spam with one easy change: it could simply
shut off its internet gateway. Then, as of yore, the only email an AOL subscriber could receive would come from another
AOL subscriber. If an AOL subscriber sent a spam to another AOL subscriber and AOL found out about it, they could terminate
the spammer’s account. Spam costs AOL millions, and represents a substantial disincentive for AOL customers to remain
with the service, and yet AOL chooses to permit virtually anyone who can connect to the Internet, anywhere in the world,
to send email to its customers, with any software at all.

Email is a sloppy, complicated ecosystem. It has organisms of sufficient diversity and sheer number as to beggar the
imagination: thousands of SMTP agents, millions of mail-servers, hundreds of millions of users. That richness and diversity
lets all kinds of innovative stuff happen: if you go to nytimes.com and “send a story to a friend,” the NYT
can convincingly spoof your return address on the email it sends to your friend, so that it appears that the email
originated on your computer. Also: a spammer can harvest your email and use it as a fake return address on the spam
he sends to your friend. Sysadmins have server processes that send them mail to secret pager-addresses when something
goes wrong, and GPLed mailing-list software gets used by spammers and people running high-volume mailing lists alike.

You could stop spam by simplifying email: centralize functions like identity verification, limit the number of authorized
mail agents and refuse service to unauthorized agents, even set up tollbooths where small sums of money are collected
for every email, ensuring that sending ten million messages was too expensive to contemplate without a damned high
expectation of return on investment. If you did all these things, you’d solve spam.

[…]

A free ebook from http://manybooks.net/

 

$(".do-nicescrol").niceScroll();  // let's do the magic! 😀
Simplest nicescroll code

 


Customized scrollbar 🦄

All Complex Ecosystems Have Parasites

All Complex Ecosystems Have Parasites

Cory Doctorow

doctorow@craphound.com

For the O’Reilly Emerging Technology Conference

San Diego, California

16 March 2005

This text is dedicated to the public domain, using a Creative Commons public domain dedication:

> Copyright-Only Dedication (based on United States law) > > The person or persons who have associated their
work with this > document (the “Dedicator”) hereby dedicate the entire copyright > in the work of authorship
identified below (the “Work”) to the > public domain. > > Dedicator makes this dedication for the
benefit of the public at > large and to the detriment of Dedicator’s heirs and successors. > Dedicator intends
this dedication to be an overt act of > relinquishment in perpetuity of all present and future rights > under
copyright law, whether vested or contingent, in the Work. > Dedicator understands that such relinquishment of all
rights > includes the relinquishment of all rights to enforce (by lawsuit > or otherwise) those copyrights in
the Work. > > Dedicator recognizes that, once placed in the public domain, the > Work may be freely reproduced,
distributed, transmitted, used, > modified, built upon, or otherwise exploited by anyone for any > purpose, commercial
or non-commercial, and in any way, including > by methods that have not yet been invented or conceived.

AOL hates spam. AOL could eliminate nearly 100 percent of its subscribers’ spam with one easy change: it could simply
shut off its internet gateway. Then, as of yore, the only email an AOL subscriber could receive would come from another
AOL subscriber. If an AOL subscriber sent a spam to another AOL subscriber and AOL found out about it, they could terminate
the spammer’s account. Spam costs AOL millions, and represents a substantial disincentive for AOL customers to remain
with the service, and yet AOL chooses to permit virtually anyone who can connect to the Internet, anywhere in the world,
to send email to its customers, with any software at all.

[…]

A free ebook from http://manybooks.net/

      $(".do-nicescrol").niceScroll({
cursorcolor:"aquamarine",
cursorwidth:"24px",
background:"rgba(20,20,20,0.3)",
cursorborder:"1px solid aquamarine",
cursorborderradius:0
});  // a world full of color!
Colorful code

 


Extremely customized scrollbar with CSS 🦄🦄🦄

All Complex Ecosystems Have Parasites

All Complex Ecosystems Have Parasites

Cory Doctorow

doctorow@craphound.com

For the O’Reilly Emerging Technology Conference

San Diego, California

16 March 2005

This text is dedicated to the public domain, using a Creative Commons public domain dedication:

> Copyright-Only Dedication (based on United States law) > > The person or persons who have associated their
work with this > document (the “Dedicator”) hereby dedicate the entire copyright > in the work of authorship
identified below (the “Work”) to the > public domain. > > Dedicator makes this dedication for the
benefit of the public at > large and to the detriment of Dedicator’s heirs and successors. > Dedicator intends
this dedication to be an overt act of > relinquishment in perpetuity of all present and future rights > under
copyright law, whether vested or contingent, in the Work. > Dedicator understands that such relinquishment of all
rights > includes the relinquishment of all rights to enforce (by lawsuit > or otherwise) those copyrights in
the Work. > > Dedicator recognizes that, once placed in the public domain, the > Work may be freely reproduced,
distributed, transmitted, used, > modified, built upon, or otherwise exploited by anyone for any > purpose, commercial
or non-commercial, and in any way, including > by methods that have not yet been invented or conceived.

AOL hates spam. AOL could eliminate nearly 100 percent of its subscribers’ spam with one easy change: it could simply
shut off its internet gateway. Then, as of yore, the only email an AOL subscriber could receive would come from another
AOL subscriber. If an AOL subscriber sent a spam to another AOL subscriber and AOL found out about it, they could terminate
the spammer’s account. Spam costs AOL millions, and represents a substantial disincentive for AOL customers to remain
with the service, and yet AOL chooses to permit virtually anyone who can connect to the Internet, anywhere in the world,
to send email to its customers, with any software at all.

[…]

A free ebook from http://manybooks.net/

$(".do-nicescroll3").niceScroll({
cursorwidth:12,
cursoropacitymin:0.4,
cursorcolor:'#6e8cb6',
cursorborder:'none',
cursorborderradius:4,
autohidemode:'leave'
});  // free your immagination
Extremly customized scrollbar with CSS
/* inspired by
http://cgit.drupalcode.org/pace/tree/css/pace-theme-barber-shop.css
https://css3wizardry.com/2010/08/23/css3-progress-bar-2/
*/
.nicescroll-rails-vr .nicescroll-cursors {
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
animation: pace-stripe-animation 500ms linear infinite;
background-size: 20px 20px;
}
@keyframes pace-stripe-animation {
from { background-position-y: 0; }
to   { background-position-y: 100%; }
}