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
// ಠ_ಠscript. | |
const ʕʘ̅͜ʘ̅ʔ = String.raw, ᵔᴥᵔ = 'world', ʘ‿ʘ = 'toString'; | |
const ఠ_ఠ = (ʕᵔᵕᵔʔ) => console.log(ʕᵔᵕᵔʔ), ಠ_ಠ = (งツ) => ಠ_ಠ; | |
ಠ_ಠ._ = ಠ_ಠ.ಠ_ಠ = ಠ_ಠ; ಠ_ಠ[ʘ‿ʘ] = () => ʕʘ̅͜ʘ̅ʔ `Hello, ${ᵔᴥᵔ}!`; | |
ఠ_ఠ(`${ಠ_ಠ``._.ಠ_ಠ``````._.ಠ_ಠ``}`[ʘ‿ʘ](ಠ_ಠ)); |
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
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> | |
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1"> | |
<asset> | |
<contributor> | |
<authoring_tool>three.js Collada Exporter</authoring_tool> | |
</contributor> | |
<created>2022-05-17T12:06:03.572Z</created> | |
<modified>2022-05-17T12:06:03.572Z</modified> | |
<up_axis>Y_UP</up_axis> | |
</asset> |
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
import React from 'react'; | |
import { editor } from 'monaco-editor'; | |
import IMouseTarget = editor.IMouseTarget; | |
import IStandaloneCodeEditor = editor.IStandaloneCodeEditor; | |
import IContentWidget = editor.IContentWidget; | |
const { ContentWidgetPositionPreference } = editor; | |
export type TDropHandler = (e: React.DragEvent, target: IMouseTarget, instance: IStandaloneCodeEditor) => void; | |
export type TInstanceGetter = () => IStandaloneCodeEditor; |
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
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import { observable } from "mobx"; | |
import { observer } from "mobx-react"; | |
// Store | |
class Store { | |
@observable isLoading = false; |
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
/* eslint-disable */ | |
var path = require('path'); | |
var MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
var WriteFilePlugin = require('write-file-webpack-plugin'); | |
var cssnano = require('cssnano'); | |
var autoprefixer = require('autoprefixer'); | |
var cssLoaderUse = function(asModules) { | |
return [ |
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 calculate_percentage($aw,$tp=0,$t=0){ | |
foreach($aw as $a) $t += $a['votes']; | |
foreach($aw as &$a)$tp += floor($a['percentage'] = $a['votes'] / $t * 100); | |
uasort($aw, 'sort_by_remainder'); | |
foreach ($aw as &$v) $v['percentage'] = ($tp++ < 100) ? ceil($v['percentage']) : floor($v['percentage']); | |
ksort($aw); | |
return $aw; | |
} |
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
module.exports = (function () { | |
var extend_single = function (destination, source, deep) { | |
for (var key in source) { | |
if (source.hasOwnProperty(key)) { | |
if (deep && typeof destination[key] == 'object' && typeof source[key] == 'object') { | |
destination[key] = extend_single(destination[key], source[key], deep); | |
} else { | |
destination[key] = source[key]; |
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
var e = encodeURIComponent; | |
var d = decodeURIComponent; | |
var paramsToURI = function(params){ | |
var uri_components = []; | |
for(var i in params){ | |
if(params.hasOwnProperty(i)) { | |
uri_components.push(e(i) + '=' + e(params[i])); | |
} | |
} |
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
function cookiesafe_session_start(){ | |
$sn = session_name(); | |
if (isset($_COOKIE[$sn])) { | |
$sessid = $_COOKIE[$sn]; | |
} else if (isset($_GET[$sn])) { | |
$sessid = $_GET[$sn]; | |
} else { | |
session_start(); | |
return false; | |
} |
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 | |
// Loading plish from hard drive and getting plish dimentions | |
$plish = imagecreatefrompng('plish.png'); | |
list($x,$y) = array(imagesx($plish),imagesy($plish)); | |
// --- Creating black image with dots | |
// Creating new image (black by default) with dimentions of a plish | |
$dots = imagecreatetruecolor($x,$y); |
NewerOlder