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
-- Copyright 2007-2020 Mitchell mitchell.att.foicica.com. See LICENSE. | |
-- Dark theme for Textadept. | |
-- Contributions by Ana Balan. | |
local view = view | |
local property, property_int = view.property, view.property_int | |
--[[ Nord palette | |
Polar Night | |
#2e3440 |
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
_M["go"] = require("go") | |
_M["go"].format_command = "goimports" | |
_M["m/f"] = require("functions") | |
keys["`"] = function() _M["m/f"].enclose_selection("`", "`") end | |
keys["'"] = function() _M["m/f"].enclose_selection("'", "'") end | |
keys['"'] = function() _M["m/f"].enclose_selection('"', '"') end | |
keys['('] = function() _M["m/f"].enclose_selection('(', ')') end | |
keys['['] = function() _M["m/f"].enclose_selection('[', ']') end |
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
local style = require "core.style" | |
local common = require "core.common" | |
--[[ Nord palette | |
Polar Night | |
#2e3440 | |
#3b4252 | |
#434c5e | |
#4c566a | |
Snow Storm |
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
local keymap = require "core.keymap" | |
local config = require "core.config" | |
local style = require "core.style" | |
keymap.add { ["ctrl+q"] = "core:quit" } | |
require "user.colors.nord" | |
config.fps = 30 | |
config.ignore_files = "!" |
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 customio | |
import ( | |
"errors" | |
"io" | |
) | |
var ErrCanceled = errors.New("operation canceled") | |
func CopyBuffer(dst io.Writer, src io.Reader, buf []byte, cancel chan struct{}) (written int64, err error) { |
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/bash | |
help(){ | |
echo "Usage: $0 <input.pdf> <output.pdf> [safe]" | |
echo "optional \`safe\` option, preform less processing, possibly better quality with a much larger file size." | |
exit 127 | |
} | |
if [[ $1 == "" ]] ; then | |
echo "Missing parameter input pdf file" | |
help |
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
color-link default "#d8dee9,#2e3440" | |
color-link comment "#4c566a," | |
# color-link comment.bright | |
color-link identifier "#5e81ac," | |
# color-link identifier.class | |
# color-link identifier.macro | |
# color-link identifier.var | |
color-link constant "#bf616a," | |
# color-link constant.bool | |
# color-link constant.bool.true |
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
// dragableElement(document.querySelector("#mydiv")) | |
function dragableElement(a) { | |
let f = 0, | |
g = 0, | |
d = 0, | |
e = 0 | |
eh = a.querySelector("#header") || a | |
eh.onmousedown = function(b) { | |
b = b || window.event |
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
all: help | |
build: | |
makepkg --ignorearch \ | |
--clean \ | |
--force \ | |
--log \ | |
--rmdeps \ | |
--syncdeps \ | |
--nosign \ |
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 | |
if [ $MP3_QUALTY -eq "" ] ; then | |
MP3_QUALTY=3 | |
fi | |
if [ $MP3_COMPRESSION -eq "" ] ; then | |
MP3_COMPRESSION=0 | |
fi |
OlderNewer