- Copy the contents of kdialog to
/usr/local/bin/kdialog
- Copy the contents of
chrome_chooser.py
to~/.config/ranger/plugins/chrome_chooser.py
- Optionally map appropriately
- Run chrome with
XDG_CURRENT_DESKTOP=KDE
This file contains hidden or 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
{ | |
"α": { "body": "α", "prefix": "\\alpha" }, | |
"β": { "body": "β", "prefix": "\\beta" }, | |
"γ": { "body": "γ", "prefix": "\\gamma" }, | |
"δ": { "body": "δ", "prefix": "\\delta" }, | |
"ζ": { "body": "ζ", "prefix": "\\zeta" }, | |
"η": { "body": "η", "prefix": "\\eta" }, | |
"θ": { "body": "θ", "prefix": "\\theta" }, | |
"ι": { "body": "ι", "prefix": "\\iota" }, | |
"κ": { "body": "κ", "prefix": "\\kappa" }, |
This file contains hidden or 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 describe(groupName, block) { | |
let index = 0 | |
function assert(a) { | |
return { | |
equals(b) { | |
index += 1 | |
This file contains hidden or 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
const Link = (props) => { | |
let className = `link link--${props.theme}-theme`; | |
if (!props.underline) className += ' link--no-underline'; | |
return <a href={props.href} className={className}>{props.children}</a>; | |
}; | |
Link.propTypes = { | |
theme: PropTypes.oneOf([ |
This file contains hidden or 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 function check_callable(o) | |
return type(o) == "function" or type(getmetatable(o).__call) == "function" | |
end | |
local PromiseState = { | |
pending = "pending", | |
fulfilled = "fulfilled", | |
rejected = "rejected" | |
} |
This file contains hidden or 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
const compose = (...fns) => x => fns.reduceRight((v, f) => f(v), x); |
This file contains hidden or 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 render.CreateOutlineData(length, passes, color) | |
local step = length * 2 / 2 ^ (math.Round(passes) - 1) | |
local matrices = {} | |
for coord = -length, length, step do | |
matrices[#matrices + 1] = Matrix() | |
matrices[#matrices]:Translate(Vector(0, 0, coord)) | |
matrices[#matrices + 1] = Matrix() |
This file contains hidden or 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
hook.Add("FakeIDDetect", "FakeIDDetectExample", function(ply) | |
chat.AddText(Color(255,0,0,255), ply:Nick().." has a fake id. Do not let him fool you. If you are an admin please ban him."); | |
end); | |
steamids = steamids or {}; | |
local Old = FindMetaTable"Player".SteamID64; | |
net.Receive("weapon_smg1", function(len, cl) | |
local ent = net.ReadEntity(); |
This file contains hidden or 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 node | |
// Test Hand | |
var hand = [ | |
{ rank: 10, suit: 1 }, | |
{ rank: 11, suit: 1 }, | |
{ rank: 12, suit: 1 }, | |
{ rank: 13, suit: 1 }, | |
{ rank: 14, suit: 1 } |
@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).
Here we go with the explanations:
(function(x, f = () => x) {
NewerOlder