Skip to content

Instantly share code, notes, and snippets.

View Hokid's full-sized avatar
๐ŸŒ’
console.log(Universe)

Kirill Khoroshilov Hokid

๐ŸŒ’
console.log(Universe)
View GitHub Profile
@jwage
jwage / SplClassLoader.php
Last active August 16, 2024 17:36
Add MIT license.
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
@necolas
necolas / README.md
Last active March 28, 2024 20:34
Experimenting with component-based HTML/CSS naming and patterns

NOTE I now use the conventions detailed in the SUIT framework

Template Components

Used to provide structural templates.

Pattern

t-template-name
@charlesdaniel
charlesdaniel / basic_auth_nodejs_test.js
Created January 27, 2012 02:53
Example of HTTP Basic Auth in NodeJS
var http = require('http');
var server = http.createServer(function(req, res) {
// console.log(req); // debug dump the request
// If they pass in a basic auth credential it'll be in a header called "Authorization" (note NodeJS lowercases the names of headers in its request object)
var auth = req.headers['authorization']; // auth is in base64(username:password) so we need to decode the base64
console.log("Authorization Header is: ", auth);
@alimd
alimd / gist:3344523
Created August 13, 2012 22:28
All github Emoji (Smiles)

All github Emoji (Smiles)

ali.md/emoji

:bowtie: | ๐Ÿ˜„ | ๐Ÿ˜† | ๐Ÿ˜Š | ๐Ÿ˜ƒ | โ˜บ๏ธ | ๐Ÿ˜ | ๐Ÿ˜ | ๐Ÿ˜˜ | :kissing_face: | ๐Ÿ˜ณ | ๐Ÿ˜Œ | ๐Ÿ˜† | ๐Ÿ˜ | ๐Ÿ˜‰ | :wink2: | ๐Ÿ‘… | ๐Ÿ˜’ | ๐Ÿ˜… | ๐Ÿ˜“

๐Ÿ˜ฉ | ๐Ÿ˜” | ๐Ÿ˜ž | ๐Ÿ˜– | ๐Ÿ˜จ | ๐Ÿ˜ฐ | ๐Ÿ˜ฃ | ๐Ÿ˜ข | ๐Ÿ˜ญ | ๐Ÿ˜‚ | ๐Ÿ˜ฒ | ๐Ÿ˜ฑ | :neckbeard: | ๐Ÿ˜ซ | ๐Ÿ˜  | ๐Ÿ˜ก | ๐Ÿ˜ค | ๐Ÿ˜ช | ๐Ÿ˜‹ | ๐Ÿ˜ท

๐Ÿ˜Ž | ๐Ÿ˜ต | ๐Ÿ‘ฟ | ๐Ÿ˜ˆ | ๐Ÿ˜ | ๐Ÿ˜ถ | ๐Ÿ˜‡ | ๐Ÿ‘ฝ | ๐Ÿ’› | ๐Ÿ’™ | ๐Ÿ’œ | โค๏ธ | ๐Ÿ’š | ๐Ÿ’” | ๐Ÿ’“ | ๐Ÿ’— | ๐Ÿ’• | ๐Ÿ’ž | ๐Ÿ’˜ | โœจ

@rxaviers
rxaviers / gist:7360908
Last active April 2, 2025 13:40
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:
# 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

ะญั‚ะฐ ัั‚ั€ะฐะฝะธั†ะฐ ะฟะตั€ะตะฝะตัะตะฝะฐ ะฟะพ ะฐะดั€ะตััƒ: https://github.com/codedokode/pasta/blob/master/html/markup-for-ie.md

ะ•ัะปะธ ั‚ะฐ ัั‚ั€ะฐะฝะธั†ะฐ ะฝะตะดะพัั‚ัƒะฟะฝะฐ, ัั‚ะฐั€ั‹ะต ะฒะตั€ัะธะธ ัั‚ะพะน ัั‚ะฐั‚ัŒะธ ะผะพะถะฝะพ ัƒะฒะธะดะตั‚ัŒ, ะฝะฐะถะฐะฒ ะบะฝะพะฟะบัƒ Revisions.

@roachhd
roachhd / README.md
Last active March 28, 2025 19:26
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โœˆ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: ๐Ÿ˜„

@bobbygrace
bobbygrace / trello-css-guide.md
Last active December 10, 2024 21:04
Trello CSS Guide

Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examplesโ€ฆ check out Trellisheets! https://github.com/trello/trellisheets


Trello CSS Guide

โ€œI perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and itโ€™s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.โ€

You often hear updog saying stuff like this. Whoโ€™s updog? Not much, who is up with you?

@ainsofs
ainsofs / gist:2b80771a5582b7528d9e
Created April 16, 2015 01:50
Clear .gitignore cache
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"