Skip to content

Instantly share code, notes, and snippets.

View guoyunhe's full-sized avatar
⌨️
typing...

Guo Yunhe guoyunhe

⌨️
typing...
View GitHub Profile
@guoyunhe
guoyunhe / fuck-unsplash-plus.js
Last active June 17, 2023 13:09
Fuck Unsplash+
// ==UserScript==
// @name Fuck Unsplash+
// @namespace https://guoyunhe.me/
// @version 0.1
// @description Remove Unsplash+ shit from Unsplash
// @author Guo Yunhe
// @match https://unsplash.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=unsplash.com
// @grant none
// ==/UserScript==
@guoyunhe
guoyunhe / vendor_bundle.sh
Last active December 2, 2022 09:37
Mozilla VPN vendor bundle script for openSUSE packaging
#!/usr/bin/env bash
# bash <(wget -nv -O - https://gist.github.com/guoyunhe/cd3322f7932b488aee08862eeda84ee1/vendor_bundle.sh)
echo Test
@guoyunhe
guoyunhe / bem-break-class-names.scss
Last active May 7, 2019 10:25
BEM, SaSS, Nesting...
// Good: don't break inside blocks, elements or modifiers
.my-button {
&__icon-left {
//
}
&__icon-right {
//
}
}
@guoyunhe
guoyunhe / react-form-template.jsx
Last active March 13, 2018 13:40
React Code Templates
import React, { Component } from 'react'
class MyComponent extends Component {
constructor(props) {
super(props);
this.state = {
name: '',
description: '',
active: false
@guoyunhe
guoyunhe / ime_icon_names.md
Last active October 6, 2016 11:14
Input Method Editor Icon Names Draft

Input Method Editor Icon Names Draft

This draft try to define generic icon names for Fcitx, IBus, SCIM. So they can be visualized seemlessly in any desktop environment, with less efforts.

Actions & Status

Some icons names already available:

  • input-keyboard
  • input-keyboard-virtual
@guoyunhe
guoyunhe / kate_build.sh
Last active July 2, 2016 05:39
Kate development on openSUSE 42.1
# Install packages
sudo zypper in \
git-core \
bzr \
ninja \
gettext-tools \
libqt5-qttools \
libgypsy0 \
libqt5-creator \
libqt5-linguist \