Skip to content

Instantly share code, notes, and snippets.

View Staler2019's full-sized avatar

JiaJyun Yang Staler2019

  • 漢昕科技
  • Taichung, Taiwan
  • 15:51 (UTC +08:00)
  • LinkedIn in/jiajyun-yang
View GitHub Profile
@davidteren
davidteren / nerd_fonts.md
Last active June 27, 2024 21:32
Install Nerd Fonts via Homebrew [updated & fixed]
@fkraeutli
fkraeutli / downloadGitLfsFiles.md
Last active June 10, 2024 06:35
How to download GIT LFS files

How to retrieve GIT LFS files from GitHub

Retrieving non-LFS files

Through the GitHub API it is possible to retrieve individual files from a Git repository via, e.g. curl. To do so, first retrieve the content information for the relevant file (or folder):

curl https://api.github.com/repos/{organisation}/{repository}/contents/{file or folder path}

For private repositories, authenticate using your username and a personal access token

@guac42
guac42 / music_bot_example.py
Last active December 2, 2022 22:56 — forked from vbe0201/music_bot_example.py
A simple music bot written using discord.py rewrite and youtube_dl.
# -*- coding: utf-8 -*-
"""
Copyright (c) 2019 Valentin B.
A simple music bot written in discord.py using youtube-dl.
Though it's a simple example, music bots are complex and require much time and knowledge until they work perfectly.
Use this as an example or a base for your own bot and extend it as you want. If there are any bugs, please let me know.
Requirements:
Python 3.5+
pip install -U discord.py pynacl youtube-dl
@dcts
dcts / workbench.colorCustomizations.json
Created April 14, 2020 16:51 — forked from jacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",

Behavioral Interviewing

While there are a number of definitions, for our purposes, soft skills are all of the skills that are not technical. Meaning - the you that shows up the interview, as well as your technical ability. Your interview is composed of your technical prowess, as well as your soft-skills and ability to answer non-technical questions around teamwork, leadership, failure (yes), ability to adapt, timeliness, and communication skills.

If you have heard of the airport test - when hiring managers ask themselves would I want to be stuck in an airport with this person? - your non-technical stories will help them answer that question. In short: non-technical questions will ask you to tell a number of stories that supplement your technical mastery.

Interviews are subjective, based off of who’s interviewing you. When you prepare for soft-skill questions, understand the value that you can bring to a company as well as your goals and interests. You will deliver better answers and be more con

@aldemirenes
aldemirenes / android_build_run.sh
Last active May 4, 2023 10:27
Shell scripts for Android development without needing to use Android Studio
#!/bin/sh
package_name=$1
./gradlew assembleDebug
adb -d install -r app/build/outputs/apk/app-debug.apk
adb shell monkey -p "$package_name" -c android.intent.category.LAUNCHER 1
./logcat.sh "$package_name"
@nnja
nnja / how-to-rebase.md
Created May 26, 2016 20:24
How to Rebase

When many different people are working on a project simultaneously, pull requests can go stale quickly. A "stale" pull request is one that is no longer up to date with the main line of development, and it needs to be updated before it can be merged into the project. The most common reason why pull requests go stale is due to conflicts: if two pull requests both modify similar lines in the same file, and one pull request gets merged, the unmerged pull request will now have a conflict. Sometimes, a pull request can go stale without conflicts: perhaps changes in a different file in the codebase require corresponding changes in your pull request to conform to the new architecture, or perhaps the branch was created when someone had accidentally merged failing unit tests to the master branch. Regardless of the reason, if your pull request has gone stale, you will need to rebase your branch onto the latest version of the master branch before it can be merged.

What is a rebase?

@qas612820704
qas612820704 / studenpackfree.md
Last active February 28, 2022 15:11
用學生信箱申請github提供的免費資源申請雲端主機(DigitalOcean+namecheap)

用學生信箱申請github提供的免費資源申請雲端主機(DigitalOcean+namecheap)

現在 github 有提出一系列對學生的優惠服務 詳情請點這裡

只要你是學生(擁有內含edu的信箱 ex:XXXXXX@mail.nchu.edu.tw)

如果你是學生又是黑客的話,就讓我們來申請吧!

Part I Get Student pack

@jzrake
jzrake / glut_ppm.c
Created May 1, 2012 18:10
PPM screenshot with GLUT
void TakeScreenshot(const char *fname)
{
printf("writing a screenshot to %s\n", fname);
int dimx = glutGet(GLUT_WINDOW_WIDTH);
int dimy = glutGet(GLUT_WINDOW_HEIGHT);
size_t imsize = 3*dimx*dimy;
char *pixels = (char*) malloc(imsize*sizeof(char));
glReadPixels(0, 0, dimx, dimy, GL_RGB, GL_UNSIGNED_BYTE, pixels);
@AndreLouisCaron
AndreLouisCaron / gist:1841061
Created February 16, 2012 02:23
Redirect std::cerr to log file.
namespace {
// redirect outputs to another output stream.
class redirect_outputs
{
std::ostream& myStream;
std::streambuf *const myBuffer;
public:
redirect_outputs ( std::ostream& lhs, std::ostream& rhs=std::cout )
: myStream(rhs), myBuffer(myStream.rdbuf())