Skip to content

Instantly share code, notes, and snippets.

View Fuwn's full-sized avatar
✒️
亀の甲より年の功

Fuwn Fuwn

✒️
亀の甲より年の功
View GitHub Profile
/* The world's smallest Brainfuck interpreter in C, by Kang Seonghoon
* http://j.mearie.org/post/1181041789/brainfuck-interpreter-in-2-lines-of-c */
s[99],*r=s,*d,c;main(a,b){char*v=1[d=b];for(;c=*v++%93;)for(b=c&2,b=c%7?a&&(c&17
?c&1?(*r+=b-1):(r+=b-1):syscall(4-!b,b,r,1),0):v;b&&c|a**r;v=d)main(!c,&a);d=v;}
@minikomi
minikomi / gist:1153616
Created August 18, 2011 07:57
Japanese fonts
font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro"
font-family: "ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN"
font-family: "ヒラギノ角ゴ Pro W6","HiraKakuPro-W6"
font-family: "ヒラギノ角ゴ ProN W6","HiraKakuProN-W6"
font-family: "ヒラギノ角ゴ Std W8","Hiragino Kaku Gothic Std"
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@dmur
dmur / MIT LICENSE
Created July 19, 2012 21:46
Attractively wrapped 80-col MIT license
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
@jednano
jednano / gitcom.md
Last active September 21, 2024 23:12
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

git init
@rxaviers
rxaviers / gist:7360908
Last active November 19, 2024 06:37
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@dtipson
dtipson / responsive-request-desktop-site.js
Last active February 17, 2024 20:49
How to make responsive sites better respect the "Request a desktop site" feature on modern mobile browsers.
/*
Enable the "Request Desktop Site" functions on mobile chrome (android and iOS) allow users to see desktop layouts on responsive sites. Note that this is distinct from "opt out of mobile!" buttons built into your site: this is meant to work with the browser's native opt-in/opt-out functionality.
Since these functions work, in part, by simply spoofing the user agent to pretend to be desktop browsers, all we have to do is just remember that the browser once claimed to be android earlier in the same session and then alter the viewport tag in response to its fib.
Here's an example viewport tag <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> that we'd be setting to scaleable-yes,max scale=2. That's just an example of something that works on the site I was building: you should customize the "desktop" viewport content setting to whatever works for your site's needs. If you wanted, you could stick this code in the head just after the primary viewport tag so that the br
@james2doyle
james2doyle / .vimrc
Created November 19, 2013 19:54
my Digital Ocean server vimrc file
" Make Vim more useful
set nocompatible
" Use the OS clipboard by default (on versions compiled with `+clipboard`)
set clipboard=unnamed
" Enhance command-line completion
set wildmenu
set showcmd
" Allow cursor keys in insert mode
set esckeys
" Allow backspace in insert mode
@itsbalamurali
itsbalamurali / ascii.txt
Last active October 23, 2024 16:01
ASCII Art ;)
_ __ _ __ __ __
| | / /___ _____ __ _____ / | / /__ / /__ ______ _____/ /_______
| | / / __ `/ __ `/ | / / _ \ / |/ / _ \/ __/ | /| / / __ \/ ___/ //_/ ___/
| |/ / /_/ / /_/ /| |/ / __/ / /| / __/ /_ | |/ |/ / /_/ / / / ,< (__ )
|___/\__,_/\__,_/ |___/\___/ /_/ |_/\___/\__/ |__/|__/\____/_/ /_/|_/____/
______ ______ __ __
/_ __/__ ____ _____ ___ / ____/___ / /_ ___ ________ ____ ____/ /___
/ / / _ \/ __ `/ __ `__ \ / / / __ \/ __ \/ _ \/ ___/ _ \/ __ \/ __ /_ /
/ / / __/ /_/ / / / / / / / /___/ /_/ / / / / __/ / / __/ / / / /_/ / / /_
# It looks like -multiwindow mode triggers the static color visual in both the internal x2go xserver and the external vcxsrv
# But it also looks like -multiwindow mode is how x2go client allows resizing of the remote desktop
# ...so I'm looking for a way to allow resizing of remote desktop w/out triggering static color visual.
#
# ...output of vcxsrv.exe's usage note:
Usage...
Vcxsrv [:<display>] [option]
:display-number