This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Shortcut for top-down gradient background color | |
td_gradient(color1, color2) | |
background-color (color1 + (color2 - color1) / 2) | |
background -webkit-gradient(linear, 0% 0%, 0% 100%, from(color1), to(color2)) | |
background -webkit-linear-gradient(top, color1, color2) | |
background -moz-linear-gradient(top, color1, color2) | |
background -ms-linear-gradient(top, color1, color2) | |
background -o-linear-gradient(top, color1, color2) | |
@css | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Function for converting an xml report into a json format | |
function report_to_json($path) | |
{ | |
# Check if the file exists | |
if(!file_exists($path)) return false; | |
# Set content type to json and charset to utf-8 | |
# header('Content-type: application/json; charset=utf-8'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pyenv() { | |
VIRTUALENVS_PATH=~/pyenvs | |
# Procure env name. If it was supplied in an argument, use that | |
if [[ "$1" != "" ]] | |
then | |
VIRTUALENV_NAME=$1 | |
else | |
# Otherwise prompt the user for it | |
VIRTUALENV_NAME="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Append/prepend text to line | |
function usage | |
{ | |
echo -e "Usage: $(basename "$0") [a|p] TEXT" | |
echo | |
echo -n "apline reads from standard input and appends/prepends TEXT to " | |
echo "each line." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "yaml" | |
require "uri" | |
require "openssl" | |
require "net/http" | |
require "nokogiri" | |
VERBOSE = !ENV["VERBOSE"].nil? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"os" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// splitv split container with 2 children | |
"border": "normal", | |
"layout": "splitv", | |
"percent": 0.4, | |
"type": "con", | |
"nodes": [ | |
{ | |
"border": "pixel", | |
"current_border_width": 2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: ft=i3config | |
# DON'T EDIT THIS FILE MANUALLY - It has been automatically built by: | |
# /home/tomas/Dropbox/Personal/config_sync/i3/build.sh | |
# This file should contain general i3 settings as well as shared variables. If | |
# the variable list grows long it should get its own file. | |
set $mod Mod4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running Steam on arch rolling 64-bit | |
STEAM_RUNTIME is enabled automatically | |
Pins up-to-date! | |
/home/tomas/.local/share/Steam/ubuntu12_32/steam | |
Installing breakpad exception handler for appid(steam)/version(1579321278) | |
Installing breakpad exception handler for appid(steam)/version(1579321278) | |
Installing breakpad exception handler for appid(steam)/version(1579321278) | |
Installing breakpad exception handler for appid(steam)/version(1579321278) | |
Installing breakpad exception handler for appid(steam)/version(1579321278) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz | |
CPU Family: 0x6 |
OlderNewer