Skip to content

Instantly share code, notes, and snippets.

@dearenot
dearenot / holyjs
Last active November 16, 2018 16:02
// вопрос: что вернёт эта функция?
// ответ: 5
// тип инпута в боте: free keyboard input
function summator() {
const expressions = [" ", 'NaN', "", "!", 0, "0", "+"].map((value) => !!!!!!value)
return expressions.reduce((prev, cur) => Number(prev)+Number(cur), "")
}
(function() {
d3.simplify = function() {
var projection = d3.geo.albers();
function simplify(feature) {
if (feature.type !== "MultiPolygon") throw new Error("not yet supported");
var heap = minHeap(),
maxArea = 0,
const round = ["(", ")"];
const square = ["[", "]"];
const curly = ["{", "}"];
const left = [round[0], square[0], curly[0]];
const right = [round[1], square[1], curly[1]];
const isLeft = (char) => {
return left.includes(char)
}
Реализовать КеноТ+ на React
Обязательные пункты
1.1 Игровое поле (80 шаров)
12. Поля баланса, номера тиража
1.3 Слайдер - кнопки '+' и '-', поле со значением ставки
ffmpeg -i {INPUT_FILE}.mp3 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis {OUTPUT_FILE}.webm
Shader "Unlit/Unlit UV Rotation of multiple textures in vertex"
{
Properties
{
_MainTex ("Texture", 2D) = "" {}
_RotatedTexA ("Texture", 2D) = "" {}
_RotationA ("Rotation", Range(0,360)) = 0.0
_RotatedTexB ("Texture", 2D) = "" {}
_RotationB ("Rotation", Range(0,360)) = 0.0
}
@dearenot
dearenot / perl
Last active April 25, 2016 03:40
use strict;
my %questGroups; #hash <date, %hash<type, @events>>
my $itemId = "1101";
my $itemChange = "+";
my $itemChangeRegex = qr /(?<=change=)(.*?)(?=[0-9])/;
my $itemIdRegex = qr /(?<=itemID=)(.*?)(?=,)/;
my $dateRegex = qr/(\d\d\.\d\d\.\d\d\d\d)/;
package;
import openfl.Assets;
import openfl.display.Sprite;
import openfl.Lib;
import openfl.geom.Point;
import openfl.text.TextField;
import openfl.text.TextFieldAutoSize;
import openfl.text.TextFormat;
bin/
obj/
report/
*.iml
**/Thumbs.db
.idea/
out/
assets/fonts/**/*.svg
assets/fonts/**/*ttf.hash
package;
import openfl.Assets;
import openfl.display.Sprite;
import openfl.Lib;
import openfl.text.TextField;
import openfl.text.TextFieldAutoSize;
import openfl.text.TextFormat;
class TestObject {