This re-styles your sublime text sidebar to be dark, it fits default Monokai theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on:
#!/usr/bin/python3 | |
from gi.repository import Gtk, Gdk | |
import sys | |
class MyWindow(Gtk.Window): | |
def __init__(self): | |
Gtk.Window.__init__(self, title="Hello World") | |
self.set_name('MyWindow') |
This re-styles your sublime text sidebar to be dark, it fits default Monokai theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on:
#!/usr/bin/env bash | |
# | |
# This is sp, the command-line Spotify controller. It talks to a running | |
# instance of the Spotify Linux client over dbus, providing an interface not | |
# unlike mpc. | |
# | |
# Put differently, it allows you to control Spotify without leaving the comfort | |
# of your command line, and without a custom client or Premium subscription. | |
# |
from uuid import UUID | |
def validate_uuid4(uuid_string): | |
""" | |
Validate that a UUID string is in | |
fact a valid uuid4. | |
Happily, the uuid module does the actual | |
checking for us. |
Located in alphabetical order (not prefer)
C
ab
), also designed as a more modern replacement, written in C
golang
)package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"net/url" | |
) | |
const ( |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
#include <stdio.h> | |
char *types[] = {"KB","MB","GB","TB","PB","EB","ZB","YB"}; | |
void change(int *size) | |
{ | |
int div = 1024; | |
int i = 0; | |
for(;i<8;i++) | |
{ | |
*size /= div; | |
if(*size < div) |
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |
/* Based on Sublime Text's Monokai theme */ | |
.cm-s-monokai.CodeMirror {background: #272822; color: #f8f8f2;} | |
.cm-s-monokai div.CodeMirror-selected {background: #49483E !important;} | |
.cm-s-monokai .CodeMirror-gutters {background: #272822; border-right: 0px;} | |
.cm-s-monokai .CodeMirror-linenumber {color: #d0d0d0;} | |
.cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;} | |
.cm-s-monokai span.cm-comment {color: #75715e;} | |
.cm-s-monokai span.cm-atom {color: #ae81ff;} |