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 Ticket extends Eloquent { | |
protected $guarded = array(); | |
protected $table = 'tickets'; | |
protected $softDelete = true; | |
public function messages() |
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 = document.createElement('script'); | |
jq.type = "text/javascript"; | |
jq.src = 'http://code.jquery.com/jquery-1.10.2.min.js'; | |
document.body.appendChild(jq); | |
// try: jQuery and have fun! |
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 | |
$dom = new DOMDocument; | |
$previousValue = libxml_use_internal_errors(true); | |
$dom->loadHTML('...'); | |
libxml_clear_errors(); | |
libxml_use_internal_errors($previousValue); |
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. | |
}); |
OlderNewer