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
function generate_keyframe_animation (name, frames, height) { | |
var steps = []; | |
for (var frame = 0; frame < frames; frame++) { | |
var percent = ((frame / (frames - 1)) * 100).toFixed(2); | |
steps.push('\t' + percent + '% { background-position: 0px ' + (-height * frame) + 'px; }'); | |
} | |
return '@-webkit-keyframes ' + name + ' {\n' + steps.join('\n') + '\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
display dialog "Lets go to check two simple values, if the result is not equal to OK, run some antivirus or do your job with the terminal app. Also, check http://goo.gl/3FWfA" with icon stop with title "Simple Flashback Trojan detect tool" | |
try | |
set test1 to do shell script "defaults read /Applications/Safari.app/Contents/Info LSEnvironment > /tmp/nada 2>&1; cat /tmp/nada | grep -i not" | |
set test1 to result | |
if test1 contains "does not exist" then | |
display dialog "Step 1: OK" with icon note | |
do shell script "rm -f /tmp/nada" | |
else |
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
var express = require('express') | |
, passport = require('passport') | |
, sessionStore = new express.session.MemoryStore() | |
, app = module.exports = express.createServer() | |
, nowjs = require('now'); | |
app.configure( function () { | |
app.use(express.bodyParser()); |
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
location /nginx_status { | |
stub_status on; | |
access_log off; | |
allow 192.168.1.1; | |
deny all; | |
} | |
active connections:nginx 正处理的活动连接数 20个。 | |
server accepts handled requests:nginx启动到现在共处理了 200个连接 , 成功创建 200 次握手 一般跟第一个一样,差值为请求丢失数。 | |
reading :nginx 读取到客户端的 Header 信息数。 |
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(!Modernizr.input.placeholder){ | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); | |
if (input.val() == '' || input.val() == input.attr('placeholder')) { |
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
$('#searchbox input').bind('keydown', function(e) { | |
var code = (e.keyCode ? e.keyCode : e.which); | |
if(e.shiftKey){ | |
$('.dialpad').append('<span class="dial">Shift</span>\n'); | |
event.preventDefault(); | |
}else if(e.altKey){ | |
$('.dialpad').append('<span class="dial">Alt</span>\n'); | |
event.preventDefault(); | |
}else if(e.ctrlKey){ |
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 | |
ini_set('max_execution_time', 0); | |
set_time_limit(0); | |
header('Content-type: text/html; charset=utf-8'); | |
// php çalıştırılma çekli | |
if (PHP_SAPI !== 'cli') { | |
echo "Bu Uygulama Sadece Konsoldan Çalışır"; | |
exit; | |
} | |
// Zaman |
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
"""SocksiPy - Python SOCKS module. | |
Version 1.00 | |
Copyright 2006 Dan-Haim. All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, | |
are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this | |
list of conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright notice, |
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
=========================================================================================== | |
YARDIM ALMAK | |
------------ | |
fonksiyonlar hakkinda yardim almak: | |
insert into t1 select generate_series(1,500); | |
\df | |
http://postgresql.org/docs/books/volkanyazici | |
CREATE OPERATOR (OHA) | |
---------------- |
NewerOlder