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 | |
class DisposableClassException extends \Exception | |
{} |
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
[ | |
{ | |
"name":"Adana", | |
"slug":"adana", | |
"plate_code":1, | |
"districts":[ | |
{ | |
"name":"Alada\u011f", | |
"slug":"aladag" | |
}, |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<startup> | |
<supportedRuntime version="v4.0.30319" /> | |
</startup> | |
</configuration> |
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
sealed class TempFile : IDisposable | |
{ | |
string path; | |
public TempFile() : this(System.IO.Path.GetTempFileName()) { } | |
public TempFile(string path) | |
{ | |
if (string.IsNullOrEmpty(path)) throw new ArgumentNullException("path"); | |
this.path = path; | |
} |
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 | |
clear | |
echo "CoffeeScript watching you!" | |
coffee -j js/application.js -wc js/ |
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
Array.apply(null, new Array(3)).map(Array.prototype.valueOf, (Array.apply(null, new Array(3)).map(Number.prototype.valueOf, 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
$('#menu a').click(function(event) | |
{ | |
// $(this) | |
// Bize '#menu a'ya ait tiklanmis olan elementi gosterecektir. | |
$('#menu li').each(function(index) | |
{ | |
// $(this) | |
// Bize '#menu li'ye ait elementleri isaret edecektir. | |
}); |
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
String::htmlspecialchars = (quote_style = 2, double_encode) -> | |
optTemp = 0 | |
i = 0 | |
noquotes = false | |
string = @.toString() | |
string = string.replace(/&/g, '&') if double_encode isnt false | |
string = string.replace(/</g, '<').replace(/>/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
# You can easly internionalize your extension's HTMLs with this. | |
$('[data-i18n]').each -> | |
me = $(@) | |
key = me.data 'i18n' | |
switch me.attr 'data-i18n-method' | |
when 'placeholder' | |
me.attr 'placeholder', chrome.i18n.getMessage key |
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
/* | |
SPF | |
(c) 2012-2014 Google, Inc. | |
License: MIT | |
*/ | |
(function(){function l(a,b,c){var d=Array.prototype.slice.call(arguments,2);return function(){var c=d.slice();c.push.apply(c,arguments);return a.apply(b,c)}}function aa(a,b){if(a){var c=Array.prototype.slice.call(arguments,1);try{return a.apply(null,c)}catch(d){return d}}}function m(a,b){if(document.createEvent){var c=document.createEvent("CustomEvent");c.initCustomEvent("spf"+a,!0,!0,b);return document.dispatchEvent(c)}return!0}function n(){return(new Date).getTime()};function p(a,b){return q[a]=b}var q=window._spf_state||{};window._spf_state=q;var ba={"animation-class":"spf-animate","animation-duration":425,"cache-lifetime":6E5,"cache-max":50,"cache-unified":!1,"link-class":"spf-link","nolink-class":"spf-nolink","navigate-limit":20,"navigate-lifetime":864E5,"prefetch-on-mousedown":!1,"process-async":!1,"request-timeout":0,"url-identifier":"?spf=__type__"};function r(a){return ca()[a]}function ca(a){return!a&&"config"in q?q.config:p("config",a||{})};function |
OlderNewer