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
// by Erik Wrenholt | |
import java.util.*; | |
class Mandelbrot | |
{ | |
static int BAILOUT = 16; | |
static int MAX_ITERATIONS = 1000; | |
private static int iterate(float x, float y) | |
{ |
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
import Vector2 from "/Core/Math/Vector2"; | |
import Rotation from "/Core/Math/Rotation"; | |
import {AClass, AProperty} from "/Core/Annotations/Meta"; | |
@AClass('Basic Actor') | |
export default class Actor { | |
/** | |
* @type {boolean} | |
*/ |
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
class Test | |
constructor: (a, b) -> | |
console.log(a, b); | |
method: -> | |
# method | |
@method: -> |
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 | |
/** | |
* Зависимости: | |
* - Sabre: https://github.com/fruux/sabre-dav | |
* - Carbon: https://github.com/briannesbitt/Carbon | |
* | |
* Использование: | |
* $ya = new \Ya\Disk(base64_encode(LOGIN . ':' . PASSWORD)); | |
* $wdc = $ya->getDisk(); | |
* print_r($wdc->getDirectory('/')); |
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
/** | |
* Это феерическое безумие и полный разрыв | |
* мозга, по-этому я откомментирую ключевые моменты. | |
* | |
* Алгоритм фактически в лоб, просто перебор | |
* всех элементов, мозги и так плавятся =)))) | |
* | |
* Пример: | |
* console.log(theMadness([1, 4, 6, 98, 3, 2, 7, 8, 90, 12, 8])); | |
* Возвращает массив комбинаций элементов, где каждый элемент бредставлен объектом |
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
/** | |
* Вменяемый код | |
* | |
* Функция предоставляет вменяемый и расшираемый интерфейс | |
* для работы с требуемой функцией. | |
* | |
* Плюс такого подхода в чистоте кода и возможности | |
* для будущей поддержки без извращений (например | |
* логгирование, всякие другие плюшки, в том числе наследоваться). | |
* |
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 | |
/** | |
* This file is part of API package. | |
* | |
* @author Serafim <nesk@xakep.ru> | |
* @date 24.02.2016 16:23 | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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 | |
/** | |
* This file is part of GitterAPI package. | |
* | |
* @author Serafim <nesk@xakep.ru> | |
* @date 01.03.2016 19:06 | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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 | |
/** | |
* @author Serafim <nesk@xakep.ru> | |
* @date 22.03.2016 20:24 | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ | |
use Doctrine\Common\Cache\Cache; |
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
/** | |
* ObservablePrimitive instance | |
*/ | |
class ObservablePrimitive { | |
/** | |
* @constructor | |
* @param value | |
*/ | |
constructor(value = null) { | |
this.events = { |
OlderNewer