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 | |
$stmt = $model->getAdapter()->query( | |
'SELECT * FROM bugs WHERE reported_by = ? AND bug_status = ?', | |
array('goofy', 'FIXED') | |
); | |
$rows = $stmt->fetchAll(); |
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
// Live demo | |
// http://jsfiddle.net/GvdSy/ | |
$.ajax({ | |
xhr: function () { | |
var xhr = new window.XMLHttpRequest(); | |
xhr.upload.addEventListener("progress", function (evt) { | |
if (evt.lengthComputable) { | |
var percentComplete = evt.loaded / evt.total; | |
} |
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
// Copy and paste on your console (Command - Option - J (Mac) or Control -Shift -J (Windows/Linux)) | |
// Press enter and wait the magic happens :3 | |
var intervalShowComments = setInterval(function () { | |
var evt = document.createEvent("MouseEvents"); | |
evt.initMouseEvent("click", true, true, window, 1, 0, 0, 0, 0, | |
false, false, false, false, 0, null); | |
var cb = document.querySelector('.UFIPagerLink'); | |
if (cb === null) { |
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
/ * | |
* Exemple: | |
* <div contenteditable="true" placeholder="Enter text here..."></div> | |
* | |
*/ | |
[contenteditable=true]:empty:before { | |
content: 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
%albumartist%\[(%year%) ]%album%\[Disc %disc%\]%albumartist% . [%track% .] %title% |
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
// Film pattern, if you need put your folder path | |
// Ex: /The Matrix Collection/[1999] The Matrix/The.Matrix.1999.720p.x264 | |
{collection}/[{y}] {n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().upperInitial().replacePart(' Part $1')}/{n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().upperInitial().space('.')}.{y}.{vf}.{vc} | |
// Show pattern, if you need put your folder path | |
// Ex: /Seinfeld/Season 06/Seinfeld.6x01.The Chaperone.480p.RealVideo | |
{n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().upperInitial()}/{'Season '+s.pad(2)}/{n.replaceTrailingBrackets()}.{s+'x'}{e.pad(2)}.{t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'") | |
.lowerTrail().upperInitial().replacePart(' Part $1')}.{vf}.{vc} |
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 | |
$csvFile = fopen('teste.csv', 'w'); | |
fwrite($csvFile, "sep=,\r\n"); | |
foreach($arrData as $row) { | |
fputcsv($csvFile, array_values($row)); | |
} | |
fclose($csvFile); |
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
// Dot crosshair CS:GO | |
cl_crosshairalpha "255"; | |
cl_crosshaircolor "5"; | |
cl_crosshaircolor_b "0"; | |
cl_crosshaircolor_r "0"; | |
cl_crosshaircolor_g "255"; | |
cl_crosshairdot "1"; | |
cl_crosshairgap "-100"; | |
cl_crosshairsize "0"; | |
cl_crosshairstyle "2"; |
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
rate "128000" | |
hud_scaling "1" | |
cl_interp "0" | |
cl_interp_ratio "1" | |
cl_cmdrate "128" | |
cl_updaterate "128" | |
fps_max "0" |
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
unbindall | |
bind "0" "slot10" | |
bind "1" "slot1" | |
bind "2" "slot2" | |
bind "3" "slot3" | |
bind "4" "slot4" | |
bind "5" "slot5" | |
bind "6" "slot6" | |
bind "7" "slot7" | |
bind "8" "slot8" |
OlderNewer