Skip to content

Instantly share code, notes, and snippets.

View badgeclass-asdasd-asd-asd-2019-07-19.json
{"@context":"https:\/\/w3id.org\/openbadges\/v2","type":"BadgeClass","id":"https:\/\/gist.githubusercontent.com\/badgegist\/1833472ed7a51b93bfa7eadd83156873\/raw\/7b261f41618da1f12d25dc91c3b12703ee1d3e09\/badgeclass-asdasd-asd-asd-2019-07-19.json","name":"asdasd asd asd","description":"sdg dfghfhgkff.hk;.hkjb,gjhmn","image":"https:\/\/gist.githubusercontent.com\/badgegist\/31a97c87f25c4db0943283fd3b5dcc52\/raw\/e1dce1739e0a1db691a2907032bc9128b417ca3a\/badgeclass-asdasd-asd-asd.svg","criteria":{"narrative":"<p>dfg skfusxhxtrhtsxxdf dz<\/p>"},"issuer":{"id":"https:\/\/example.org\/issuer","type":"Profile","name":"Example Maker Society","url":"https:\/\/example.org","email":"contact@example.org","verification":{"allowedOrigins":"example.org"}}}
@badgegist
badgegist / badgeclass-asdasd-asd-asd.svg
Created Jul 19, 2019
Badge Image for asdasd asd asd
View badgeclass-asdasd-asd-asd.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bat
_____________________ _____________________
`-._: .:' `::: .:\ |\__/| /:: .:' `::: .:.-'
\ : \ |: | / : /
\ :: . `-_______/ :: \_______-' . :: . /
| : :: ::' : :: ::' : :: ::' :: ::' : :: :|
| ;:: ;:: ;:: ;:: ;:: |
| .:' `::: .:' `::: .GlitterX: .:' `::: .:' `:|
/ : : : : : \
/______::_____ :: . :: . :: _____._::____\
`----._:: ::' : :: ::' _.----'
View .gitconfig
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
View degenerateDeletion.js
//If it has only a right child, we replace the node we are deleting with its child.
else if (node.right && !node.left){
let right = node.right;
node.val = right.val;
node.left = right.left;
node.right = right.right;
if(node.right) node.right.parent = node;
if(node.left) node.left.parent = node;
right = null;
return true;
View gist:4e90863b5b0f87f68bc0476d24712f93
IE9不能支持FormData
IE9不能支持文件(File) 接口
IE9不能识别application/json
IE9不支持以e.target.value的方式取Dom组件的value值(Input, Select etc…)
IE9不支持很多CSS3特性,比如animation
IE9不支持H5 Input控件(如select, email etc..)
IE9不能完全解析体积大于250k的css文件
在设置滚动条overflow的情况下,不断滚动会导致底部出现大片空白(chrome, firefox无此类问题)
IE9下React不支持BrowserRouter,支持HashRouter
---------------------
@akim8
akim8 / QR_Snippet.cs
Created Jul 19, 2019
code getting display data, was supposed to be analyzed for a qr code but unused now.
View QR_Snippet.cs
Texture2D screenshot = new Texture2D(Screen.width, Screen.height, TextureFormat.RGBA32, false);
screenshot.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0);
screenshot.Apply();
Color32[] color = screenshot.GetPixels32();
View install_minikube.sh
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.23.0/minikube-darwin-amd64 \
&& chmod +x minikube && \
sudo mv minikube /usr/local/bin/
View property.swift
struct Coordinate {
var x: Int = 0
var y: Int = 0
}
let point: Coordinate = Coordinate()
@kevinAlbs
kevinAlbs / clang-tidy-warnings.txt
Created Jul 19, 2019
A list of the original clang-tidy warnings for reference.
View clang-tidy-warnings.txt
To run clang-tidy, you need a compilation "database" (which is a JSON file listing how to compile each individual file).
Generate this by setting -DCMAKE_EXPORT_COMPILE_COMMANDS=ON in the cmake command used to configure libmongocrypt. E.g.
cd cmake-build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ../
Then the cmake-build directory should contain the compilation database: compile_commands.json
Then, run clang-tidy by passing a list of file names and the path to the directory containing the compilation database:
find ./src/ -name "*.c" | xargs ~/bin/clang+llvm-8.0.0-x86_64-apple-darwin/bin/clang-tidy -p ./cmake-build
You can’t perform that action at this time.