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
# Maintainer: Felix Yan <[email protected]> | |
pkgbase=ibus | |
pkgname=(ibus libibus) | |
pkgver=1.5.25 | |
pkgrel=2 | |
pkgdesc="Next Generation Input Bus for Linux" | |
arch=('x86_64') | |
url="https://github.com/ibus/ibus/wiki" | |
license=('LGPL') |
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 | |
config_directory="$(dirname "$(realpath "$0")")" | |
port=2222 | |
while [[ "$#" -gt 0 ]]; do | |
case "$1" in | |
-c|--config-directory) | |
config_directory="$2" | |
shift |
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 (c) 2020 Hai Zhang <[email protected]> | |
* All Rights Reserved. | |
*/ | |
package com.example.yourapplication | |
import android.app.Activity | |
import android.content.Intent | |
import android.os.Bundle |
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 (C) 2006 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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 (c) 2018 Zhang Hai <[email protected]> | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
From ab1517d7e99a7dbe83bc1af335a23060e9ed4015 Mon Sep 17 00:00:00 2001 | |
From: Zhang Hai <[email protected]> | |
Date: Sun, 18 Feb 2018 22:18:45 -0800 | |
Subject: [PATCH] Support parsing COLLADA <triangles>. | |
--- | |
src/collada.cpp | 38 +++++++++++++++++++++++++------------- | |
1 file changed, 25 insertions(+), 13 deletions(-) | |
diff --git a/src/collada.cpp b/src/collada.cpp |
- 检查是否已有
~/bin
目录(~
即是家目录)。如果没有: 0. 创建目录:mkdir ~/bin
。 1. 编辑~/.bashrc
,加入export PATH="$HOME/bin:$PATH"
。 2. 退出终端并重新打开以使新的~/.bashrc
生效(或者执行source ~/.bashrc
)。
- 下载 https://github.com/DreaminginCodeZH/zju-net-utils/raw/master/src/zjuvpn.sh 为
~/bin/zjuvpn
(不带扩展名,用起来方便),并使用chmod +x ~/bin/zjuvpn
添加可执行权限。 - 安装 xl2tpd:
sudo pacman -S xl2tpd
。 - 配置
ppp
:
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 com.yourapplication; | |
import android.net.Uri; | |
import android.os.ParcelFileDescriptor; | |
import android.support.v4.content.FileProvider; | |
import android.text.TextUtils; | |
import android.webkit.MimeTypeMap; | |
import com.bumptech.glide.load.ImageHeaderParser; | |
import com.bumptech.glide.load.resource.bitmap.DefaultImageHeaderParser; |
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/gjs | |
const GLib = imports.gi.GLib; | |
const Gtk = imports.gi.Gtk; | |
const Lang = imports.lang; | |
function compute(surfaces, objectDistance, maxObjectAngle, objectHeight) { | |
const k = surfaces.length; | |
const r = surfaces.map(function (surface) { return surface.radius }); | |
const n = [surfaces[0].reflectionOrDistanceLeft].concat(surfaces.map(function (surface) { return surface.reflectionRight })); |
NewerOlder