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
int wyswietl_menu( ) | |
{ | |
int ch; | |
cout << "\n 1. Wyszukiwanie ksiazek" << endl; | |
cout << " 2. Edycja danych" << endl; | |
cout << " 3. Dopisywanie danych" << endl; | |
cout << " 4. Wypożyczanie książek" << endl; | |
cout << " 5. Zwrot książek" << endl; | |
cout << " 6. Koniec\n\n"; | |
cout << "Wybierz polecenie: \n? "; |
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
diff --git a/blipalacz.user.js b/blipalacz.user.js | |
index e781177..fba42b1 100644 | |
--- a/blipalacz.user.js | |
+++ b/blipalacz.user.js | |
@@ -775,6 +775,19 @@ function Dopal() { | |
} | |
} | |
} else { | |
+ | |
+ jQuery('span.respond').each(function(e, v){ |
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
import re | |
a = u'Brzozowa 4/5' | |
re.split('\W+',a, re.UNICODE) | |
# [u'Brzozowa', u'4', u'5'] | |
a = u'Drzymały 4/5' | |
re.split('\W+',a, re.UNICODE) | |
# chce: [u'Drzymały', u'4', u'5'] | |
# dostaję: [u'Drzyma', u'y', u'4', u'5'] |
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
$jq('input.customtimetable').click( function (e) { if ($jq(this).is(':checked') ) { $jq(this).parent().css('background', '#10a010'); } else { $jq(this).parent().css('background', '#E6E7E9'); } } ); |
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
<?php | |
$str = "Mon Aug 06 00:00:00 BST 2012"; | |
$d = strtotime("$str"); | |
echo date("Y-m-d H:i", $d); | |
// 2012-08-06 01:00 |
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
#!/bin/sh | |
export LC_ALL=C | |
echo `uptime|grep days|sed 's/.*up \([0-9]*\) day.*/\1\/10+/'; cat /proc/cpuinfo|grep MHz|awk '{print $4"/30 +";}'; free|grep '^Mem' |awk '{print $3"/1024/3+"}'; df -P -k -x nfs | grep -v 1k | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/\(.$\)/.\1cm/' |
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
<meta property="og:title" content="Fota bimbałów" /> | |
<meta property="og:image" content="http://example.com/cycki.jpg" /> | |
<meta property="og:image:width" content="598" /> | |
<meta property="og:image:height" content="743" /> | |
<meta property="og:description" content="Fajne bimbały" /> |
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
import simplejson, requests, urllib, re | |
# -*- encoding: utf-8 -*- | |
from slughifi import slughifi | |
### http://trac.django-fr.org/browser/site/trunk/project/links/slughifi.py?rev=47 | |
### with django's slugify hardcoded inside from: | |
### http://code.activestate.com/recipes/577257/ | |
for z in simplejson.loads(requests.get("http://wolnelektury.pl/api/books/").content.decode('utf8')): | |
p = simplejson.loads(requests.get(z['href']).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
source :rubygems | |
# gem "rails", "2.3.14" | |
# gem "i18n", "~> 0.4.2" | |
# gem "coderay", "~> 1.0.6" | |
# gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby] | |
# gem "tzinfo", "~> 0.3.31" | |
# Optional gem for LDAP authentication | |
# group :ldap do |
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
--- vmci-only/linux/driver.c 2012-08-16 05:53:18.000000000 +1000 | |
+++ vmci-only3.8rc4/linux/driver.c 2013-01-23 11:19:10.325897824 +1100 | |
@@ -124,7 +124,7 @@ | |
.name = "vmci", | |
.id_table = vmci_ids, | |
.probe = vmci_probe_device, | |
- .remove = __devexit_p(vmci_remove_device), | |
+ .remove = vmci_remove_device, | |
}; | |
OlderNewer