Skip to content

Instantly share code, notes, and snippets.

View Taraflex's full-sized avatar

Alexander Taratin Taraflex

View GitHub Profile
@Taraflex
Taraflex / chrome_flags.updated.js
Last active February 5, 2024 07:48 — forked from kkeybbs/chrome_flags.updated.js
Backup chrome flags to json and restore the backup on another machine.
// 2022-04-03, tested with Chrome 99.0.4844.84 on MacBook Pro m1
/*
Open chrome://flags/
F12 open developer console, swtich to tab "Console"
Paste below codes
- input backup() to download flags backup file
- input restore() to select one backup to restore
*/
function saveFile(filename, data) {
#pragma once
#include <iostream>
#include <sstream>
#include <string>
template<typename BasicCharType>
class SSWrapper
{
public:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<style type="text/css">
body,html,iframe{
padding: 0;
margin: 0;
width: 100%;
import QtQuick 2.2
import QtQuick.Window 2.2
import QtWebKit 3.0
import QtWebKit.experimental 1.0
Rectangle {
id:root
width: 800
height: 600
<?php
include("SxGeo.php");
$SxGeo = new SxGeo('SxGeoCityMax.dat');
$ip = $_SERVER['REMOTE_ADDR'];
$city_info = $SxGeo->get($ip);
$city_name = "Новосибирск";
$city_name2 = "Новосибирске";
$lat = 82.92043;
$lon = 55.030199;
package ;
import haxe.ds.StringMap;
import sys.io.File;
import sys.FileSystem;
/**
* ...
* @author qw01_01
*/
@echo off
setlocal EnableDelayedExpansion
dir /B > temp
echo package{public final class Res{ > Res.as
for /F "delims=" %%a in ('findstr ".png .jpeg .jpg .wbp .txt .xml" temp') do (
set "line=%%a"
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
* If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.
* You may add additional accurate notices of copyright ownership.
*
* It is desirable to notify that Covered Software was "Powered by AlternativaPlatform" with link to http://www.alternativaplatform.com/
* */
package alternativa.engine3d.collisions {