Skip to content

Instantly share code, notes, and snippets.

View TheMartes's full-sized avatar
:electron:
javascriptin'

Matej Bunček TheMartes

:electron:
javascriptin'
View GitHub Profile
@TheMartes
TheMartes / custom.css
Last active August 23, 2018 11:26
My VSCode Custom CSS
.monaco-shell {
font-family: "Fira Code", "Inconsolata", monospace;
}
/* This makes the dirty tab circle yellow */
.vs-dark
.monaco-workbench
> .part.editor
> .content
> .one-editor-silo
@TheMartes
TheMartes / cloudSettings
Last active November 21, 2018 22:50
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-11-21T22:50:48.372Z","extensionVersion":"v3.2.0"}
@TheMartes
TheMartes / martes.zsh-theme
Created October 31, 2017 18:15
My Custom zsh theme
# Fork of https://gist.github.com/xfanwu/18fd7c24360c68bab884
# Originally created by https://github.com/xfanwu
# Created by TheMartes
# Machine name.
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || echo $HOST
}
# Directory info.
@TheMartes
TheMartes / settings.json
Last active October 20, 2017 20:38
VSCode Settings
{
// Workbench
"workbench.colorTheme": "Dracula",
"workbench.startupEditor": "newUntitledFile",
"workbench.editor.showTabs": true,
"workbench.editor.tabCloseButton": "left",
"workbench.editor.enablePreview": true,
// Files
"files.autoSave": "onFocusChange",
@TheMartes
TheMartes / index.css
Last active October 20, 2017 20:29 — forked from kocisov/index.css
VSCode rainbowicons
@keyframes cc {
0% {
color: #fff;
}
10% {
color: #c92a2a;
}
20% {
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@TheMartes
TheMartes / videoIE.js
Created March 8, 2017 20:28
This JavaScript is supossed to make video responsive in IE 6+
// This JavaScript is supossed to make video responsive in IE 6+
export default function(el) {
if (isIe()) {
let videoEl = el.querySelector('video');
let ration = (1920 / 1080);
el.classList.add('ie-fix');
if (dimensions(el).height > (dimensions(videoEl).width / ration)) {
let newWidth = dimensions(el).height * ration;
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_style": "phase",
"fade_fold_buttons": false,
"find_selected_text": true,
"font_face": "Fira Code",
"font_size": 12,
"ignored_packages":
[
@TheMartes
TheMartes / .hyper.js
Last active June 16, 2018 15:08
My config file for Hyper Terminal Emulator
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',