Skip to content

Instantly share code, notes, and snippets.

View reepush's full-sized avatar

Grisha Pushkov reepush

View GitHub Profile
@chourobin
chourobin / 0-bridging-react-native-cheatsheet.md
Last active August 8, 2024 10:02
React Native Bridging Cheatsheet
@MatthewBarker
MatthewBarker / parse-rss-pub-date.js
Created January 20, 2017 09:37
Parse RSS pubDate using moment.js
// RSS feeds are supposed to have a standardised date format, as shown in the RSS 2.0 specification:
// All date-times in RSS conform to the Date and Time Specification of RFC 822,
// with the exception that the year may be expressed with two characters or four characters (four preferred).
// Example: Sat, 07 Sep 2002 0:00:01 GMT
var formats = ['ddd, DD MMM YYYY HH:mm:ss ZZ', 'ddd, DD MMM YY HH:mm:ss ZZ'];
var pubDate = moment(item.querySelector('pubDate').textContent, formats);
@jaredrummler
jaredrummler / ColorTextViewHandles.java
Created September 1, 2016 17:56
Set the color of the handles shown when you select text in a TextView on Android
// Tested on Android Nougat. Should work on previous versions of Android.
// It's ugly but should get the job done
/**
* Set the color of the handles when you select text in a
* {@link android.widget.EditText} or other view that extends {@link TextView}.
*
* @param view
* The {@link TextView} or a {@link View} that extends {@link TextView}.
* @param color
@clhenrick
clhenrick / README.md
Last active August 16, 2023 09:47
Data URI SVG icons with Leaflet
@flaki
flaki / FirefoxDevEdition48.js
Last active September 22, 2021 23:38
Go to firefox.com/developer. Paste the script into the console. Profit! 😎
/*
(!) Please make sure you've read the disclamer below! (!)
If you want to see how can you transform the Firefox Developer Edition landing
page into a fancy animation just
- navigate to http://firefox.com/developer *
- open the developer tools (F12)
- copy and paste this code into the console
- hit enter, and enjoy the show!
- you can follow the commentary via the console log
@dsdsdsdsdsds
dsdsdsdsdsds / cursor.css
Last active November 1, 2023 11:45
CSS: Cross Browser hires/retina cursor image
.cursor {
cursor: url("cursor.png") 0 0, pointer; /* Legacy */
cursor: url("cursor.svg") 0 0, pointer; /* FF */
cursor: -webkit-image-set(url("cursor.png") 1x, url("cursor@2x.png") 2x) 0 0, pointer; /* Webkit */
}

System

  1. Set up iCloud Keychain
  2. Remove icons and hide Dock
  3. Default address in iMessage
  4. Install Updates
  5. Add Ru Input Sources
  6. Set up Shortcuts
  7. Add text shortcuts Text
@lunelson
lunelson / gsap-properties-cheat-sheet.md
Last active January 28, 2024 22:07
Greensock Properties Cheat Sheet

Greensock CSS properties Cheat Sheet

I wrote this as a reference for myself because some of the property names are non-obvious, and there are a number of relevant special properties, and there is no central concise listing of them all in GSAP Docs, other than (in longer form) on the CSSPlugin page.

Standard CSS properties

...are all supported, with hyphenated-names becoming camelCaseNames. Non-animatable properties are also supported but they will be set at the beginning of the tween.

Special mentions:

@bgrins
bgrins / Browser Console Helpers
Last active April 26, 2024 21:54
Helpers that can be used when debugging Firefox in the Browser Console / Browser Debugger
Helpers that can be used when debugging Firefox in the Browser Console / Browser Debugger
@satans17
satans17 / replace-emoji
Last active August 18, 2024 09:40
replace emoji for javascript
//https://github.com/node-modules/emoji
//http://apps.timwhitlock.info/emoji/tables/unicode
var unified_emoji_ranges = [
'\ud83c[\udf00-\udfff]', // U+1F300 to U+1F3FF
'\ud83d[\udc00-\ude4f]', // U+1F400 to U+1F64F
'\ud83d[\ude80-\udeff]' // U+1F680 to U+1F6FF
];