Skip to content

Instantly share code, notes, and snippets.

@jstcki
jstcki / README.md
Last active September 11, 2020 17:16
Swiss Municipality Coordinates

Extract and list Swiss municipality coordinates from TopoJSON.

Interactive Demo for Scrollbar (* : only for -webkit browsers)

Simple scrollbar for -webkit browsers.

A Pen by kaushalya on CodePen.

License.

@plentz
plentz / nginx.conf
Last active August 27, 2025 08:07
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@blooski
blooski / css_browser_engines
Last active December 23, 2015 21:39
Browser Engines - specific CSS for a specific engine
/*
IE
Engine: Trident
CSS-prefix: -msie
Firefox
Engine: Gecko
CSS-prefix: -moz
Opera
Engine: Presto
CSS-prefix: -o
@yields
yields / gist:6648208
Last active December 23, 2015 14:19
blink pseudo elements
λ blink master grep -nr "::-webkit-" . | sed -En 's/.*(::-webkit-[a-z]+(-[a-z]+)?).*/\1/p' | sort -u
::-webkit-calendar-picker
::-webkit-clear-button
::-webkit-color-swatch
::-webkit-date-and
::-webkit-datetime-edit
::-webkit-details-marker
::-webkit-distributed
::-webkit-file-upload
@A973C
A973C / example.css
Created August 26, 2013 05:56
Custom Scrollbars in WebKit
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: none;
}
::-webkit-scrollbar-thumb {
background: -webkit-linear-gradient(left, #547c90, #002640);
@yanghu
yanghu / git-commands.md
Last active July 10, 2016 15:34
Useful Git commands

##Useful Git Commmands and Tips

Ignore files locally###

add the files you want to ignore to .git/info/exclude, this file will not be shared with other remotes, so only the local repo will ignore those files.

###Show information###

  • git log/show command
git log --graph --oneline #show history
@falcondai
falcondai / install-fonts.sh
Last active February 5, 2016 19:36
install all fonts files under a directory recursively (for Ubuntu).
#!/bin/bash
echo installing fonts at $PWD to ~/.fonts/
find . -name '*.ttf' -exec cp \{\} ~/.fonts/ \;
find . -name '*.otf' -exec cp \{\} ~/.fonts/ \;
echo finished installing
@mixin reset-text-rendering
{
/*
* See: http://www.usabilitypost.com/2012/11/06/optimize-legibility/
*/
text-rendering: optimizeLegibility;
/*
* Prevents the browser from using synthesized font-weights.
@ramiabraham
ramiabraham / mixins
Created August 9, 2013 02:34
just some mixins
@function black($opacity){
@return rgba(0,0,0,$opacity)
}
@function white($opacity){
@return rgba(255,255,255,$opacity)
}
@mixin box-emboss($opacity, $opacity2){
box-shadow:white($opacity) 0 1px 0, inset black($opacity2) 0 1px 0;
}