Skip to content

Instantly share code, notes, and snippets.

View crashmax-dev's full-sized avatar
:octocat:
Meow

Vitalij Ryndin crashmax-dev

:octocat:
Meow
  • Russia
  • 17:53 (UTC +08:00)
View GitHub Profile
@crashmax-dev
crashmax-dev / index.html
Last active September 9, 2021 18:04
theme.js
<input type="checkbox" id="switchTheme">
<label for="switchTheme"></label>
<?php
$headers = getallheaders();
header("Content-Type: application/json");
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Allow-Origin: ".$headers["Origin"]);
$data = $_POST["value"];
if (isset($data) && !empty($data)) {
#!/bin/bash
cd ~/Desktop/root/github/spaces.ru && npm start
git commit -a -m "$(date +"%x %T")" && git push
read
# Windows .bat
# cd %USERPROFILE%/Desktop/root/github/spaces.ru && npm start
# git commit -a -m "$(date +"%x %T")" && git push
# pause
@crashmax-dev
crashmax-dev / apidebug.js
Created August 9, 2018 04:50
Spaces.ru API Debug
var DEBUG_TIME_LEVEL = {
"QUICKLY": 1,
"VERY_QUICKLY": 0,
"VERY_SLOWLY": 4,
"COMPREHENSIBLE": 2,
"SLOWLY": 3
};
var DEBUG_TIME_LEVEL_LC_NAME = {
"4": "very_slowly",
"1": "quickly",