Skip to content

Instantly share code, notes, and snippets.

View blindFS's full-sized avatar
🤔
I may be slow to respond.

zc he blindFS

🤔
I may be slow to respond.
View GitHub Profile
--langdef=latex
--langmap=latex:.tex,latex:.sty,latex:.cls
--regex-latex=/^[ \t]*\\label\{([^}]*)\}/\1/l,label/
--regex-latex=/^[ \t]*\\[sub]{0,2}section\{([^}]*)\}/\1/s,section/
--regex-latex=/^[ \t]*\\[re]{0,1}newcommand\{\\([^}]*)\}/\1/d,definition/
--regex-latex=/^[ \t]*\\[re]{0,1}newenvironment\{([^}]*)\}/\1/d,definition/
--regex-latex=/^[ \t]*\\DeclareRobustCommand\{\\([^}]*)\}/\1/d,definition/
--regex-latex=/^[ \t]*\\begin\{([^}]*)\}/\1/e,environment/
--langdef=wiki
@blindFS
blindFS / lisp.vim
Last active December 21, 2015 19:09
syn region lispAtomList contained matchgroup=Special start="(" skip="|.\{-}|" matchgroup=Special end=")" contains=TOP,@lispAtomCluster,lispString,lispEscapeSpecial
function! s:process_tag_pre_pygments(line, pre) "{{{
if !executable('pygmentize')
return s:process_tag_pre(a:line, a:pre)
endif
let lines = []
let pre = a:pre
let processed = 0
if !pre[0] && a:line =~ '^\s*{{{'
let s:syntax = matchstr(a:line, 'class=.\zs\w\+')
let s:syntax = s:syntax == "" ? "text" : s:syntax
nnoremap <silent><space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
_________________________
/ ░█░█░▀█▀░█▄█░▀▀█░░░░█░█ \
| ░▀▄▀░░█░░█░█░▄▀░░░░░░▀█ |
\ ░░▀░░▀▀▀░▀░▀░▀░░░▀░░░░▀ /
-------------------------
\ {
\ } } {
{ { } }
} }{ {
GoAgentGTK(window, terminal).window.hide_all()
#!/bin/bash
bumble_status=$(optirun --status|awk -F " " '{print $NF}')
if [ "$bumble_status" = "off." ]; then
echo "Gpu : off"
exit 0
fi
bumble_temp=$( optirun --no-xorg nvidia-smi -q -d TEMPERATURE | grep Gpu)
echo "$(echo $bumble_temp | sed 's/\(\S\+\) C/ +\1.0°C/g')"
module Jekyll
class ColoredTag< Liquid::Tag
Syntax = /^\s*(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb[a]{0,1}\([ .0-9,]{5,}\))\s*(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb[a]{0,1}\([ .0-9,]{5,}\))?\s*"([^"]*)"\s*$/
def initialize(tagName, markup, tokens)
if markup =~ Syntax then
@bg = $1
if $3.nil? then
@fg = "#ffffff"
@text = $2
else
@blindFS
blindFS / show_ip
Last active December 26, 2015 07:09
#!/bin/bash
echo "LAN: $(ifconfig | grep 'inet ' | grep -v '127.0.0.1' | head -n 1 | cut -d: -f2 | awk '{print $2}')"
echo "EXTERNAL: $(lynx --dump http://ipecho.net/plain)"
@blindFS
blindFS / popups.lua
Last active December 26, 2015 07:09
-- { requirement
--local beautiful = require("beautiful")
local naughty = require("naughty")
local os = require("os")
local awful = require("awful")
local helpers =require("blingbling.helpers")
local string = require("string")
local superproperties = require('blingbling.superproperties')
---Differents popups for Awesome widgets
--@module blingbling.popups