Skip to content

Instantly share code, notes, and snippets.

View NekR's full-sized avatar
๐Ÿ’ป
Guess what

Arthur Stolyar NekR

๐Ÿ’ป
Guess what
  • Russia, St. Petersburg
View GitHub Profile
@mathiasbynens
mathiasbynens / appify
Created November 12, 2010 13:46 — forked from subtleGradient/appify
appify โ€” create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@advorak
advorak / appify.sh
Created November 29, 2011 02:43 — forked from mathiasbynens/appify
appify โ€” create the simplest possible Mac app from a shell script (adds an application icon)
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" ]; then cat <<EOF
appify v3.0.0 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@leostratus
leostratus / webkit-pseudo-elements.md
Created September 21, 2012 01:44
Webkit Pseudo-Element Selectors (Shadow DOM Elements)

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 11, 2026 05:03
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@ayapi
ayapi / gulpfile.js
Created May 23, 2014 02:47
gulp-stylus + autoprefixer-stylus
var gulp = require('gulp');
var stylus = require('gulp-stylus');
var autoprefixer = require('autoprefixer-stylus');
gulp.task('stylus', function () {
return gulp.src('./styl/style.styl')
.pipe(stylus({
use: [autoprefixer('iOS >= 7', 'last 1 Chrome version')]
}))
.pipe(gulp.dest('./css'))
@itsthatguy
itsthatguy / emoji
Last active May 19, 2025 19:24
Unmaintained: All the current (at time of this post) emoji characters available for easy copy and paste (copy and paste into your favorite editor)
๐Ÿ˜ ๐Ÿ˜‚ ๐Ÿ˜ƒ ๐Ÿ˜„ ๐Ÿ˜… ๐Ÿ˜† ๐Ÿ˜‰ ๐Ÿ˜Š ๐Ÿ˜‹ ๐Ÿ˜Œ ๐Ÿ˜ ๐Ÿ˜ ๐Ÿ˜’ ๐Ÿ˜“ ๐Ÿ˜” ๐Ÿ˜– ๐Ÿ˜˜ ๐Ÿ˜š ๐Ÿ˜œ ๐Ÿ˜ ๐Ÿ˜ž ๐Ÿ˜  ๐Ÿ˜ก ๐Ÿ˜ข ๐Ÿ˜ฃ
๐Ÿ˜ค ๐Ÿ˜ฅ ๐Ÿ˜จ ๐Ÿ˜ฉ ๐Ÿ˜ช ๐Ÿ˜ซ ๐Ÿ˜ญ ๐Ÿ˜ฐ ๐Ÿ˜ฑ ๐Ÿ˜ฒ ๐Ÿ˜ณ ๐Ÿ˜ต ๐Ÿ˜ท ๐Ÿ˜ธ ๐Ÿ˜น ๐Ÿ˜บ ๐Ÿ˜ป ๐Ÿ˜ผ ๐Ÿ˜ฝ ๐Ÿ˜พ ๐Ÿ˜ฟ ๐Ÿ™€ ๐Ÿ™… ๐Ÿ™† ๐Ÿ™‡
๐Ÿ™ˆ ๐Ÿ™‰ ๐Ÿ™Š ๐Ÿ™‹ ๐Ÿ™Œ ๐Ÿ™ ๐Ÿ™Ž ๐Ÿ™ โœ‚ โœ… โœˆ โœ‰ โœŠ โœ‹ โœŒ โœ โœ’ โœ” โœ– โœจ โœณ โœด โ„ โ‡ โŒ
โŽ โ“ โ” โ• โ— โค โž• โž– โž— โžก โžฐ ๐Ÿš€ ๐Ÿšƒ ๐Ÿš„ ๐Ÿš… ๐Ÿš‡ ๐Ÿš‰ ๐ŸšŒ ๐Ÿš ๐Ÿš‘ ๐Ÿš’ ๐Ÿš“ ๐Ÿš• ๐Ÿš— ๐Ÿš™
๐Ÿšš ๐Ÿšข ๐Ÿšค ๐Ÿšฅ ๐Ÿšง ๐Ÿšจ ๐Ÿšฉ ๐Ÿšช ๐Ÿšซ ๐Ÿšฌ ๐Ÿšญ ๐Ÿšฒ ๐Ÿšถ ๐Ÿšน ๐Ÿšบ ๐Ÿšป ๐Ÿšผ ๐Ÿšฝ ๐Ÿšพ ๐Ÿ›€ โ“‚ ๐Ÿ…ฐ ๐Ÿ…ฑ ๐Ÿ…พ ๐Ÿ…ฟ
๐Ÿ†Ž ๐Ÿ†‘ ๐Ÿ†’ ๐Ÿ†“ ๐Ÿ†” ๐Ÿ†• ๐Ÿ†– ๐Ÿ†— ๐Ÿ†˜ ๐Ÿ†™ ๐Ÿ†š ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡จ๐Ÿ‡ณ ๐Ÿ‡จ๐Ÿ‡ณ ๐Ÿ‡จ๐Ÿ‡ณ ๐Ÿ‡ฏ
๐Ÿ‡ต ๐Ÿ‡ฏ๐Ÿ‡ต ๐Ÿ‡ฏ๐Ÿ‡ต ๐Ÿ‡ฐ๐Ÿ‡ท ๐Ÿ‡ฐ๐Ÿ‡ท ๐Ÿ‡ฐ๐Ÿ‡ท ๐Ÿ‡ซ๐Ÿ‡ท ๐Ÿ‡ซ๐Ÿ‡ท ๐Ÿ‡ซ๐Ÿ‡ท ๐Ÿ‡ช๐Ÿ‡ธ ๐Ÿ‡ช๐Ÿ‡ธ ๐Ÿ‡ช๐Ÿ‡ธ ๐Ÿ‡ฎ๐Ÿ‡น ๐Ÿ‡ฎ๐Ÿ‡น ๐Ÿ‡ฎ๐Ÿ‡น ๐Ÿ‡บ๐Ÿ‡ธ ๐Ÿ‡บ๐Ÿ‡ธ
๐Ÿ‡บ๐Ÿ‡ธ ๐Ÿ‡ท๐Ÿ‡บ ๐Ÿ‡ท๐Ÿ‡บ ๐Ÿ‡ท๐Ÿ‡บ ๐Ÿˆ ๐Ÿˆ‚ ๐Ÿˆš ๐Ÿˆฏ ๐Ÿˆฒ ๐Ÿˆณ ๐Ÿˆด ๐Ÿˆต ๐Ÿˆถ ๐Ÿˆท ๐Ÿˆธ ๐Ÿˆน ๐Ÿˆบ ๐Ÿ‰ ๐Ÿ‰‘ ยฉ ยฎ โ€ผ โ‰
#โƒฃ #โƒฃ #โƒฃ โ„ข โ„น โ†” โ†• โ†– โ†— โ†˜ โ†™ โ†ฉ โ†ช โŒš โŒ› โฉ โช โซ โฌ โฐ โณ โ–ช โ–ซ โ–ถ
โ—€ โ—ป โ—ผ โ—ฝ โ—พ โ˜€ โ˜ โ˜Ž โ˜‘ โ˜” โ˜• โ˜ โ˜บ โ™ˆ โ™‰ โ™Š โ™‹ โ™Œ โ™ โ™Ž โ™ โ™ โ™‘ โ™’ โ™“
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active April 15, 2026 14:56
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@paulirish
paulirish / what-forces-layout.md
Last active May 8, 2026 17:53
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
function setAppBarColors(brandColorHex, brandColorInactiveHex) {
// Detect if the Windows namespace exists in the global object
if (typeof Windows !== 'undefined') {
var brandColor = hexStrToRGBA(brandColorHex);
var brandColorInactive = hexStrToRGBA(brandColorInactiveHex);
// Get a reference to the App Title Bar
var appTitleBar = Windows.UI.ViewManagement.ApplicationView.getForCurrentView().titleBar;
var black = hexStrToRGBA('#000');
var white = hexStrToRGBA('#FFF');