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
# This file was written by KDE | |
# You can edit it in the KDE control center, under "GTK Styles and Fonts" | |
include "/usr/share/themes/Clearlooks/gtk-2.0/gtkrc" | |
style "user-font" | |
{ | |
font_name="Ubuntu" | |
} | |
widget_class "*" style "user-font" |
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' | |
require 'uri' | |
url = URI.parse( "http://mi9.com" ) | |
Net::HTTP.start( url.host, url.port ) do |http| | |
(83514..83593).to_a.each do |img| | |
img_1280 = http.get "/uploads/abstract/4661/vector-room_1280x1024_#{img}.jpg" | |
filename = "vr_1280x1024_#{img}.jpg" | |
open( filename, "wb" ) do |file| | |
puts "downloading #{filename}" |
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
#!/usr/bin/bash | |
timestamp='s/\[[a-zA-Z]\+:[a-zA-Z_0-9]\+@[0-9\-]\+\ [0-9:]\+\ [A-Z]\+]/\o033[0;31;48m&\o033[0m/g' | |
log='s/LOG/\o033[1;34;47m&\o033[0m/g' | |
statement='s/STATEMENT/\o033[1;34;40m&\o033[0m/g' | |
warning='s/WARNING/\o033[1;31;43m&\o033[0m/g' | |
error='s/ERROR/\o033[1;37;41m&\o033[0m/g' | |
select='s/\(select\|SELECT\)/\o033[4;34;48m&\o033[0m/g' | |
insert='s/\(insert\|INSERT\)/\o033[4;32;48m&\o033[0m/g' | |
update='s/\(update\|UPDATE\)/\o033[4;33;48m&\o033[0m/g' |
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
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
<!-- | |
div#carousel_outer_container { | |
width: 100%; | |
margin: 0px; |
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
executeFunctionByName = function(functionName) | |
{ | |
var args = Array.prototype.slice.call(arguments).slice(1); | |
var namespaces = functionName.split("."); | |
var func = namespaces.pop(); | |
var ns = namespaces.join('.'); | |
if(ns === undefined || ns === '') | |
{ | |
ns = 'window'; | |
} |
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
#!/usr/bin/python3 | |
import os, time, shutil, sys | |
dir = sys.argv[1] | |
os.chdir(dir) | |
for f in os.listdir('.'): | |
ftime = time.gmtime(os.path.getmtime(f)) | |
ctime_dir = str(ftime.tm_year) '-' str(ftime.tm_mon) '-' str(ftime.tm_mday) | |
if not os.path.isdir(ctime_dir): | |
os.mkdir(ctime_dir) |
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
#!/usr/bin/env python | |
def gmail_checker(username,password): | |
import imaplib,re | |
i=imaplib.IMAP4_SSL('imap.gmail.com') | |
try: | |
i.login(username,password) | |
x,y=i.status('INBOX','(MESSAGES UNSEEN)') | |
messages=int(re.search('MESSAGES\s+(\d+)',y[0]).group(1)) | |
unseen=int(re.search('UNSEEN\s+(\d+)',y[0]).group(1)) | |
return (messages,unseen) |
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 | |
final class Gmail{ | |
//******************************************************** | |
private $imap_username = ''; | |
private $imap_password = ''; | |
private $save_dir = '.'; | |
//******************************************************** | |
private $imap_base_address = '{imap.gmail.com:993/imap/ssl}'; | |
public function go() { |
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
/** | |
* Számot a magyar helyesírás szabályai szerint szöveggé konvertáló osztály | |
* maximum százezer-milliárd-os nagyságrenddel számol | |
* | |
* @author ikon | |
*/ | |
class ntw | |
{ | |
private $singles; | |
private $tens; |
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
CREATE DOMAIN color_hexa AS character varying(7) DEFAULT NULL::character varying CONSTRAINT color_hexa_check CHECK (((VALUE)::text ~ '^#?([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?'::text)); |
OlderNewer