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
<?xml version="1.0" encoding="utf-8"?> | |
<locale | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="l10n_output.xsd" | |
locale="enGB"> | |
<e id="0">GLOBAL_SUCCESS</e> | |
<e id="1">GLOBAL_PERMISSION_ERROR</e> | |
<e id="2">GLOBAL_NOT_CONNECTED</e> | |
<e id="3">GLOBAL_BAD_TOKEN</e> |
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 fish | |
# FIXME(eddyb) get this working in bash! | |
bash -c 'set -eu; eval "$(jq -nr "$1" --args -- "${@:2}")"' bash \ | |
'$ARGS.positional | ((index("--") // length) as $i | [.[:$i],.[$i+1:]]) as [$opts, $rest] | [($opts[] | ((select(startswith("--")) | ((index("=") // length) as $j | [.[:$j],.[$j+1:]]) as [$name, $value] | {($name | sub("^--";"")):$value})//{"ARGS":.})), ($rest[] | {"ARGS":.})] | map(to_entries[]) | reduce .[] as $e ({};.[$e.key]+=[$e.value]) | to_entries | map("\(.key)=\(.value | @sh"(\(.))")")[], "eval \"$top_cmd\""' \ | |
--top_cmd='eval "${begin[@]}"; eval "${in[@]}" | eval "${process[@]}" | eval "${out[@]}"; eval "${end[@]}"' \ | |
--in='zstd -d < "$messages_jsonl_zst"' \ | |
--process='rg -C "${context:-0}" --context-separator=-SNIP- -- "$re_prefilter" | jq "${jq[@]}" | rg -C "${context:-0}" --context-separator="$table_separator" -- "$re_postfilter"' \ | |
--begin='export regex="$ARGS"; [ ${#ARGS[@]} -eq 1 ] || (echo "ERR: expected 1 argument (search regex), found ${#ARGS[@]}: ${A |
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
fn pop<T, ..Stack>((_, ..stack): (T, ..Stack)) -> Stack { | |
stack | |
} | |
fn dup<T: Clone, ..Stack>((x, ..stack): (T, ..Stack)) -> (T, T, ..Stack) { | |
(x.clone(), x, ..stack) | |
} | |
fn swap<T, U, ..Stack>((x, y, ..stack): (T, U, ..Stack)) -> (U, T, ..Stack) { | |
(y, x, ..stack) |
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
use git2::Delta; | |
use git2::DiffOptions; | |
use git2::Repository; | |
use std::collections::BTreeMap; | |
use std::env::set_current_dir; | |
use std::process::Command; | |
fn main() { | |
let repo = Repository::open_from_env().unwrap(); | |
set_current_dir(repo.workdir().unwrap()).unwrap(); |
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
var fs = require('fs'), http = require('http'), path = require('path'), url = require('url'), domJS = require('dom-js'); | |
function camel(name) { | |
return name.length ? name[0].toLowerCase() + name.slice(1).replace(/[^\w#]+\w/g, function(x) {return x[1].toUpperCase();}) : ''; | |
} | |
function nonStrictDOM() { | |
var dom = new domJS.DomJS; | |
dom.strict = false; | |
return dom; |
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
trace:crypt:CryptAcquireContextW (0x180ea88, (null), (null), 1, f0000040) | |
trace:crypt:RSAENH_CPAcquireContext (phProv=0xa7df780, pszContainer=(null), dwFlags=f0000040, pVTable=0xa7df800) | |
trace:crypt:CryptGenRandom (0xa7df770, 32, 0x180eaac) | |
trace:crypt:RSAENH_CPGenRandom (hProv=00000001, dwLen=32, pbBuffer=0x180eaac) | |
trace:crypt:CryptReleaseContext (0xa7df770, 00000000) | |
trace:crypt:RSAENH_CPReleaseContext (hProv=00000001, dwFlags=00000000) | |
trace:crypt:CertCloseStore ((nil), 00000000) | |
trace:crypt:CertFreeCertificateChainEngine ((nil)) | |
fixme:d3d:resource_check_usage Unhandled usage flags 0x8. | |
fixme:d3d:resource_check_usage Unhandled usage flags 0x8. |
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
// cargo-deps: hsl, image, csv = "1.0.0-beta.4", serde, serde_derive | |
// ~~~ PUBLIC DOMAIN ~~~ | |
// I, the copyright holder of this work, hereby release it | |
// into the public domain. This applies worldwide. | |
// In case this is not legally possible, I grant any entity | |
// the right to use this work for any purpose, without any | |
// conditions, unless such conditions are required by law. | |
extern crate csv; |
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
use async::fs::File; | |
use async::io::Async; | |
fn copy(src: &Path, dst: &Path) -> impl Async<()> { | |
let src = try!(File::open(src)); | |
let dst = try!(File::create(dst)); | |
// Copy a kiB at a time. | |
let mut buffer = Vec::with_capacity(1024); | |
loop { |
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
// blowfish.cpp C++ class implementation of the BLOWFISH encryption algorithm | |
// _THE BLOWFISH ENCRYPTION ALGORITHM_ | |
// by Bruce Schneier | |
// Revised code--3/20/94 | |
// Converted to C++ class 5/96, Jim Conger | |
#include "blowfish.h" | |
#include "blowfish.h2" // holds the random digit tables | |
#define S(x,i) (SBoxes[i][x.w.byte##i]) |
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
/*icon nav*/ | |
/* 1 */ | |
html.MTCenabled #fbRequestsJewel a.jewelButton, html.MTCenabled #fbRequestsJewel a.jewelButton:hover, html.MTCenabled #fbRequestsJewel a.jewelButton:focus{ | |
background-image: url(https://ssl10.ovh.net/~ecclesia/myFacebook/img/sprite.png) !important; | |
background-position: -56px -134px !important; | |
} | |
html.MTCenabled #fbRequestsJewel a.jewelButton:active{ | |
background-image: url(https://ssl10.ovh.net/~ecclesia/myFacebook/img/sprite.png) !important; | |
background-position: -25px -134px !important; | |
} |
NewerOlder