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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>[Javascript] Math floor and bitwise operator</title> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<style> | |
article, aside, figure, footer, header, hgroup, |
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
io ho inserito nei meta della pagina questi valori: | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
Poi in un <script> ho inserito lo scrollTo | |
Questo lo puoi chiamare da qualche funzione che chiami al load: | |
setTimeout(function(){window.scrollTo(0,1);}, 1000); |
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
<body onload="setTimeout(function(){window.scrollTo(0,1);}, 1000);"> | |
<div data-role="page"> | |
<div data-role="header"> | |
<h1>Page Title</h1> | |
</div><!-- /header --> | |
<div data-role="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
if ('standalone' in navigator | |
&& navigator.standalone | |
&& (/iphone|ipod|ipad/gi).test(navigator.platform) | |
&& sessionStorage.standalone > 60*5*1000 | |
// && !document.referrer //optional | |
){ | |
sessionStorage.setItem('standalone', (new Date()).getTime()); | |
_gaq.push(['_trackEvent', 'iOS', 'desktop', 'open']); |
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
require 'net/http' | |
url = URI.parse('http://search.yahooapis.com/ContentAnalysisService/V1/termExtraction') | |
appid = 'YahooDemo' | |
context = 'Italian sculptors and painters of the renaissance favored | |
the Virgin Mary for inspiration' | |
query = 'madonna' | |
post_args = { |
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
require 'mail' | |
require 'net/http' | |
Dir.glob('./new/*.eml').each do |entry| | |
#File.rename(entry, entry+".work") | |
mail = Mail.read(entry) | |
body = '' | |
if mail.parts.length | |
mail.parts.each do |p| |
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
<div class="grid-4 work" id="25001"> | |
<img src="http://c929092.r92.cf2.rackcdn.com/1.jpg" alt=""> | |
<span class="sm"> | |
<h4>Django meetup</h4> | |
<p>Proudly sponsoring Budapest's first Django Meetup group.</p> | |
<a href="#" class="btn small">show details</a> | |
</span> | |
</div> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>HTML5 - Tiny boilerplate</title> | |
<link href="style.css" rel="stylesheet" type="text/css"> | |
<script type="text/javascript" src="script.js"></script> | |
<script type="text/javascript"></script> | |
</head> | |
<body> |
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
#Recursively delete .svn directories [ http://www.anyexample.com/linux_bsd/bash/recursively_delete__svn_directories.xml ] | |
rm -rf `find . -type d -name .svn` |
OlderNewer