This file contains hidden or 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
ru: | |
ice_cube: | |
pieces_connector: ' / ' | |
not: 'not %{target}' | |
not_on: 'not on %{target}' | |
date: | |
formats: | |
default: '%B %-d, %Y' | |
month_names: | |
- |
This file contains hidden or 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/bash | |
# streaming on Ubuntu via ffmpeg. | |
# see http://ubuntuguide.org/wiki/Screencasts for full documentation | |
# see http://www.thegameengine.org/miscellaneous/streaming-twitch-tv-ubuntu/ | |
# for instructions on how to use this gist | |
if [ ! -f ~/.twitch_key ]; then | |
echo "Error: Could not find file: ~/.twitch_key" | |
echo "Please create this file and copy past your stream key into it. Open this script for more details." |
This file contains hidden or 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
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package org.springframework.boot; | |
import java.lang.reflect.Constructor; | |
import java.nio.charset.Charset; | |
import java.security.AccessControlException; |
This file contains hidden or 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 | |
trait CreatedTrait | |
{ | |
/** | |
* @var DateTime | |
*/ | |
protected $created; | |
/** |
This file contains hidden or 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 | |
for ($i = 0, $j = strlen($s) - 1; $i < strlen($s) / 2; $i++, $j--) { | |
$c = $s[$i]; | |
$s[$i] = $s[$j]; | |
$s[$j] = $c; | |
} |
This file contains hidden or 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 | |
function solve($n) { | |
if ($n > 0) { | |
echo solve($n - 1); | |
} | |
return $n; | |
} | |
solve(10); |
This file contains hidden or 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
server { | |
listen 80; | |
root /home/faost/www/test; | |
index index.html; | |
server_name test; | |
location ~ \.php$ { | |
fastcgi_pass unix:/var/run/php5-fpm.sock; |
This file contains hidden or 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
/* | |
highlight v3 !! Modified by Jon Raasch (http://jonraasch.com) to fix IE6 bug !! | |
Highlights arbitrary terms. | |
<http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html> | |
MIT license. |
This file contains hidden or 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
<!doctype html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>--> | |
<script src="http://www.km.ru/misc/jquery.js"></script> | |
<script> |
This file contains hidden or 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 | |
/** | |
* {@inheritdoc} | |
*/ | |
public function setDefaultOptions(OptionsResolverInterface $resolver) | |
{ | |
$resolver->setDefaults(array( | |
'type' => 'new', | |
)); |