Skip to content

Instantly share code, notes, and snippets.

View shanyou's full-sized avatar

shanyou shanyou

  • China
View GitHub Profile
@shanyou
shanyou / .wezterm.lua
Last active January 20, 2025 10:59
WezTerm Configuration with Custom Key Bindings and Launch Menu for AI Chat Integration
local wezterm = require("wezterm")
local launch_menu = {}
if wezterm.target_triple == "x86_64-unknown-linux-gnu" then
table.insert(
launch_menu,
{ label = "ai-chat", args = { "aichat"} }
)
end
return {
launch_menu = launch_menu,
@shanyou
shanyou / Makefile
Created April 26, 2019 00:14 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@shanyou
shanyou / apache-logs-hive.sql
Created November 4, 2015 08:08 — forked from emk/apache-logs-hive.sql
Apache log analysis with Hadoop, Hive and HBase
-- This is a Hive program. Hive is an SQL-like language that compiles
-- into Hadoop Map/Reduce jobs. It's very popular among analysts at
-- Facebook, because it allows them to query enormous Hadoop data
-- stores using a language much like SQL.
-- Our logs are stored on the Hadoop Distributed File System, in the
-- directory /logs/randomhacks.net/access. They're ordinary Apache
-- logs in *.gz format.
--
-- We want to pretend that these gzipped log files are a database table,
@shanyou
shanyou / AmazingListView.java
Created June 5, 2013 03:26
AmazingListView.java
package com.foound.widget;
import android.content.*;
import android.graphics.*;
import android.util.*;
import android.view.*;
import android.widget.*;
import com.foound.widget.AmazingAdapter.HasMorePagesListener;
@shanyou
shanyou / hellosam
Created June 5, 2013 02:18
sam's first gist
woooo. what a wondfull gist for me. i can share every code on git not my desktop. hoho.
now i can edit for sublime using gist plugin.
greate.