background preloader

CodeSkulptor

CodeSkulptor

Getting Started: Building a Chrome Extension Extensions allow you to add functionality to Chrome without diving deeply into native code. You can create new extensions for Chrome with those core technologies that you're already familiar with from web development: HTML, CSS, and JavaScript. If you've ever built a web page, you should feel right at home with extensions pretty quickly; we'll put that to the test right now by walking through the construction of a simple extension that will give you one-click access to pictures of kittens. We'll do so by implementing a UI element we call a browser action, which allows us to place a clickable icon right next to Chrome's Omnibox for easy access. If you'd like to follow along at home (and you should!) The very first thing we'll need to create is a manifest file named manifest.json. In order to display kittens, we'll want to tell Chrome that we'd like to create a browser action, and that we'd like free-reign to access kittens from a particular source on the net.

Mining of Massive Datasets The book has now been published by Cambridge University Press. The publisher is offering a 20% discount to anyone who buys the hardcopy Here. By agreement with the publisher, you can still download it free from this page. Cambridge Press does, however, retain copyright on the work, and we expect that you will obtain their permission and acknowledge our authorship if you republish parts or all of it. --- Jure Leskovec, Anand Rajaraman (@anand_raj), and Jeff Ullman Download Version 2.1 The following is the second edition of the book, which we expect to be published soon. There is a revised Chapter 2 that treats map-reduce programming in a manner closer to how it is used in practice, rather than how it was described in the original paper. Version 2.1 adds Section 10.5 on finding overlapping communities in social graphs. Download the Latest Book (511 pages, approximately 3MB) Download chapters of the book: Download Version 1.0 Download the Book as Published (340 pages, approximately 2MB)

Hands-On Python A Tutorial Introduction for Beginners Hands-On Python A Tutorial Introduction for Beginners Contents Chapter 1 Beginning With Python 1.1. You have probably used computers to do all sorts of useful and interesting things. 1.1.1. First let us place Python programming in the context of the computer hardware. z = x+y is an instruction in many high-level languages that means something like: Access the value stored at a location labeled x Calculate the sum of this value and the value stored at a location labeled y Store the result in a location labeled z. No computer understands the high-level instruction directly; it is not in machine language. Obviously high-level languages were a great advance in clarity! If you follow a broad introduction to computing, you will learn more about the layers that connect low-level digital computer circuits to high-level languages. 1.1.2. There are many high-level languages. 1.1.3. If you are not sure whether your computer already has Python, continue to Section 1.2.2 , and give it a try. Windows Linux 1.2.

Python - Quick Guide Python is a high-level, interpreted, interactive and object oriented-scripting language. Python is InterpretedPython is InteractivePython is Object-OrientedPython is Beginner's Language Python was developed by Guido van Rossum in the late eighties and early nineties at the National Research Institute for Mathematics and Computer Science in the Netherlands. Python's feature highlights include: Easy-to-learnEasy-to-readEasy-to-maintainA broad standard libraryInteractive ModePortableExtendableDatabasesGUI ProgrammingScalable The most up-to-date and current source code, binaries, documentation, news, etc. is available at the official website of Python: Python Official Website : You can download the Python documentation from the following site. Python Documentation Website : www.python.org/doc/ Interactive Mode Programming: Invoking the interpreter without passing a script file as a parameter brings up the following prompt: >>> print "Hello, Python!" Hello, Python! #! Example: #! #!

Read, Write, Innovate! Silicon Valley May 3rd, 4th, and 17th, 9am-4pm What do Instagram, Snapchat and Twitter have in common? They were all created by people who knew how to code. Programming is a skill that gives you the ability to create and innovate. Our workshops take place in San Francisco and New York City on the weekends at local tech companies, and are led by top software engineers. We’re currently accepting applications which are due on April 22nd. Still have questions? Trouble viewing the application? <iframe height="500" allowTransparency="true" frameborder="0" scrolling="no" style="width:100%;border:none;"src=" href=" rel="nofollow">Fill out my Wufoo form!

Unstructured data is worth the effort when you've got the right tools It’s dawning on companies that data analysis can yield insights and inform business decisions. As data-driven benefits grow, so do our demands about what more data can tell us and what other types we can mine. During her PhD studies, Alyona Medelyan (@zelandiya) developed Maui, an open source tool that performs as well as professional librarians in identifying main topics in documents. Medelyan now leads the research and development of API-based products at Pingar. Pingar senior software researcher Anna Divoli (@annadivoli) studied sentence extraction for semi-automatic annotation of biological databases. “Big data is important in many diverse areas, such as science, social media, and enterprise,” observes Divoli. How did you get started in big data? Anna Divoli: I began working with big data as it relates to science during my PhD. Alyona Medelyan: Like Anna, I mainly focus on unstructured data and how it can be managed using clever algorithms. What projects are you working on now?

Code Like a Pythonista: Idiomatic Python In this interactive tutorial, we'll cover many essential Python idioms and techniques in depth, adding immediately useful tools to your belt. There are 3 versions of this presentation: ©2006-2008, licensed under a Creative Commons Attribution/Share-Alike (BY-SA) license. My credentials: I am a resident of Montreal,father of two great kids, husband of one special woman,a full-time Python programmer,author of the Docutils project and reStructuredText,an editor of the Python Enhancement Proposals (or PEPs),an organizer of PyCon 2007, and chair of PyCon 2008,a member of the Python Software Foundation,a Director of the Foundation for the past year, and its Secretary. In the tutorial I presented at PyCon 2006 (called Text & Data Processing), I was surprised at the reaction to some techniques I used that I had thought were common knowledge. Many of you will have seen some of these techniques and idioms before. These are the guiding principles of Python, but are open to interpretation. import this

Free Online Classes - The Herbs Place Where Do I Begin with Natural Health Solutions? This series of classes teaches about the entire body, one system at a time. You'll learn a lot about how the body functions and what health problems are related to which body system. You'll also learn about natural health remedies for many health problems. Intestinal System - The intestinal system is like a city's waste disposal plant. Respiratory System - Our respiratory system is essential to the growth and movement of the body. Glandular System - Not only is the glandular system one of the most important systems of the body, but it is also among the most complicated. Immune System - Every day your body is under siege, attempting to repel a continuous assault by disease and virulent organisms. Nervous System - Nerves are somewhat like "electrical wires' that allow almost instant communication to the far reaches of the body. Structural System - Like a building, the human body relies on its internal structural system for strength.

Getting the Hang of GitHub A project is always more fun when you've got friends working with you, but how can do it when working on a coding project? I'll keep my keyboard to myself, thanks. Enter GitHub. With this web service, you can share your coding projects and collaborate with ease! Disclaimer This tutorial will assume that you're familiar with Git, arguably the best distributed version control software there is. Getting Started Of course, you'll need a GitHub account if you're to experience any of the social coding goodness. Creating an Account There are several different plans you can use, depending on your needs. Open up your terminal and type this: ssh-keygen -t rsa -C "your@email.com". Warming up to the Interface When you first log in, you'll see the dashboard; it's something like this: In the top right corner, you can see a toolbar with options for controlling your account. The main panel offers a number of actions; later, it will be used to keep you up to date on projects you're interested in. Commits

使用python抓取网页(以人人网新鲜事和团购网信息为例) 前一段时间写的小东西,一直没工夫把他系统写出来,今天眼睛疼,就写写吧~~(原来博主不蛋疼时也会更新博客的哈~) python抓取网页基础 python自己带有很多网络应用相关的模块,如:ftplib用于FTP相关操作,smtplib和poplib用于收发电子邮件等等,利用这些 模块自己写一个FTP软件或是邮件客户端类软件完全是可能的,我就简单的试过完全用python脚本收发邮件和操作自己的FTP服务器。当然,这都不是今 天的主角,我们今天要用到的几个模块是:urllib,urllib2,cookielib,BeautifulSoup,我们先来简单介绍下。 urllib和urllib2自然都是处理URL相关的操作,urllib可以从指定的URL下载文件,或是对一些字符串进行编码解码以使他们成为特定的 URL串,而urllib2则比urllib更2一点,哦不对,是更牛逼一点。 我们先来看看最简单的网页抓取,其实网页抓取就是将所要的网页源代码文件下载下来,然后对其分析以提取对自己有用的信息。 import urllibhtml_src = urllib.urlopen(' 这样就会打印出百度首页的HTML源码了,还是很easy的。 from BeautifulSoup import BeautifulSoupparser = BeautifulSoup(html_src) 这样,后续处理HTML源码的工作交给parser变量来负责就好,我们可以简单的调用parser的prettify函数来相对美观的显示源码, 可以看到这样就能看到中文字符了,因为BeautifulSoup能自动处理字符问题,并将返回结果都转化为Unicode编码格式。 抓取人人网的新鲜事 前面讲的是最简单的抓取情形了,但通常我们需要面对更复杂的情形,拿人人网来说,需要登录自己的账号才能显示新鲜事,这样我们就只能求助于更2一点 的urllib2模块了。 首先import我们需要的所有模块,然后使用urllib2模块的HTTPCookieProcessor搭建一个处理cookie的 Handler,传入cookielib模块的CookieJar函数作为参数,这个这个函数处理HTTP的cookie,简单地说,它从HTTP请求中 提取cookie,然后将其返回给HTTP响应。

Related: