Skip to content

Instantly share code, notes, and snippets.

View meeDamian's full-sized avatar
👨‍💻
Lightning Networking

Damian Mee meeDamian

👨‍💻
Lightning Networking
View GitHub Profile
@meeDamian
meeDamian / mtv_video.html
Created November 8, 2011 13:00
Wonderful MTV video embeding code
<div id="mtviembedvideo" class="www.mtv.pl">
<table cellpadding="1" cellspacing="1" border="0" style="font:normal 11px arial, sans-serif; ">
<tbody>
<tr>
<td colspan="2">
<table style="font:normal 11px arial, sans-serif; color:#333; background-color:#f5f5f5" cellpadding="0" cellspacing="0" width="320">
<tbody>
<tr style="background-color:#e5e5e5" valign="middle">
<td style="padding:2px 1px 2px 5px;">
<h3 style="margin:0;padding:0;font-size:11px;">
@meeDamian
meeDamian / popular_movies.json
Created November 8, 2011 14:03
Response with recent list of 10 most popular videos on MTV (with additional size parameters).
@meeDamian
meeDamian / popular_videos_mtv.json
Created November 8, 2011 14:05
Response with recent list of 10 most popular videos on MTV.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript">
function animateCount($node) {
// nodes, values
var $val= $node.find('.number');
var val = parseInt($val.text());
$val.html('0');
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript">
function animateCount($node) {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript">
function animateCount($node) {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript">
function animateCount($node) {
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript" src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<script type="text/javascript">
FB.init({
appId : tu_wpisz_swoje_app_ID,
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>
@meeDamian
meeDamian / gist:1400546
Created November 28, 2011 14:14
break breaking stuff one level to high
var p_no = 0; // debug (+ indexy)
var p_counter = 1;
cs.recipients.forEach(function(email) {
switch(p_counter) {
case 1:
cs.recipients_arr[p_no] = '[';
case 2:
case 3:
case 4:
function main_rotator_init() {
zawsze najpierw wyczyść interwał a dopiero później ustawiaj nowy
clearInterval(interval);
interval = setInterval("main_rotator()",5000);
}
function main_rotator() {
// jakieś-tam zmiany w strukturze
$node = $('.current');
$node.hide();
$('.main').removeClass('current');