Skip to content

Instantly share code, notes, and snippets.

@Atulin
Atulin / semantic-dark.css
Created July 15, 2018 01:39
The long-awaited inverted theme for SemanticUI Keep in mind, it's completely inverted, green turned to purple, etc.
/*
* # Semantic UI - 2.3.3
* https://github.com/Semantic-Org/Semantic-UI
* http://www.semantic-ui.com/
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
@Atulin
Atulin / semantic-dark.min.css
Created July 15, 2018 01:41
Minified version of the inverted SemanticUI theme, available at https://gist.github.com/Atulin/6d29ef74df6dcf2a8512f3f701bf4d6e
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic&subset=latin);/*!
* # Semantic UI 2.3.3 - Reset
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/.ui.animated.button,.ui.circular.image,.ui.circular.images,svg:not(:root){overflow:hidden}button,hr,input{overflow:visible}audio,canvas,progress,video{display:inline-block}.ui.button,progress,sub,sup{vertical-align:baseline}.ui.button,.ui.divider{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.ui.button:focus .icon,.ui.button:hover .icon{opacity:.85}.ui.button,button,select{text-transform:none}.ui.buttons,.ui.labeled.button:not(.icon){-webkit-box-orient:horizontal;-webkit-box-direction:normal}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}html{-webkit-box-sizing:border-box;box-sizing:border-box;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}input[type=text],input[type=email],input[type=s
@Atulin
Atulin / semantic-dark.css
Created July 15, 2018 21:45
Fixed dark SemanticUI theme – unminified
/*
* # Semantic UI - 2.3.3
* https://github.com/Semantic-Org/Semantic-UI
* http://www.semantic-ui.com/
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
@Atulin
Atulin / semantic-dark.min.css
Created July 15, 2018 21:45
Fixed dark SemanticUI theme – minified
@import url('https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic&subset=latin');/*!
* # Semantic UI 2.3.3 - Reset
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/*,*:before,*:after{-webkit-box-sizing:inherit;box-sizing:inherit}html{-webkit-box-sizing:border-box;box-sizing:border-box}input[type="text"],input[type="email"],input[type="search"],input[type="password"]{-webkit-appearance:none;-moz-appearance:none}/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:
@Atulin
Atulin / index.php
Last active July 22, 2019 10:21
Making Altorouter work with Twig
<?php
/* Project structure
*
* ROOT
* - index.php
* - public
* - master.twig
*/
require 'vendor/autoload.php';
@Atulin
Atulin / Program.cs
Created November 9, 2018 21:17
A short and sweet Xpath checker. Made with .NET Core
using System;
using HtmlAgilityPack;
namespace XpathStuff
{
class Program
{
static void Main(string[] args)
{
Console.Write("URL to parse: ");
@Atulin
Atulin / HTTPCodes.json
Last active August 6, 2019 10:01
HTTP status codes as a convenient Json file, with a script that was used to parse them
[
{
"code":100,
"message":"Continue",
"family":null
},
{
"code":101,
"message":"Switching Protocols",
"family":null
@Atulin
Atulin / config_benchmark.php
Last active August 12, 2019 15:57
Script benchmarking data read from json, yaml, and plain PHP array
<?php
// Length of each data string in bytes
$LENGTH = $_GET['length'] ?? 10;
// Number of data strings in each last branch
$ELEMENTS = $_GET['elements'] ?? 5;
// Number of sub-branches of each branc and root
$DEPTH = $_GET['depth'] ?? 3;
// How many times to repeat the benchmark
$TRIES = $_GET['tries'] ?? 1;
// If true, geenrates new data files and runs the benchmark
<?php
define('DEF', [
'key' => 'value',
'complex' => [
'key' => 'value',
'complex' => [
'key' => 'value'
]
]
]);
@Atulin
Atulin / ytdl.sh
Created September 2, 2019 00:46
Some commands for Youtube-dl I had to find or come up with
# Download playlist in reverse order and number the files
ytdl [ PLAYLIST URL ] --playlist-reverse -o "%(playlist_index)s – %(title)s.%(ext)s"