Skip to content

Instantly share code, notes, and snippets.

View elhoucine's full-sized avatar

Elhoucine Azayou elhoucine

  • France
View GitHub Profile
export type Obj = Record<any, any>;
export const isArray = Array.isArray;
export const isObject = (val: unknown): val is Obj => {
return val !== null && typeof val === 'object';
};
export type StrapiAttributesObject = {
attributes: any;
@klarstil
klarstil / uninstall.sh
Created April 5, 2013 06:40
Uninstall git on Mac OS X
#!/bin/bash
if [ ! -r "/usr/local/git" ]; then
echo "Git doesn't appear to be installed via this installer. Aborting"
exit 1
fi
echo "This will uninstall git by removing /usr/local/git/**/*, /etc/paths.d/git, /etc/manpaths.d/git"
printf "Type 'yes' if you sure you wish to continue: "
read response
if [ "$response" == "yes" ]; then
sudo rm -rf /usr/local/git/
@tylergaw
tylergaw / dabblet.css
Created April 18, 2012 22:23
Centered Vertical line with CSS Gradient
/**
* Centered Vertical line with CSS Gradient
*/
div {
background: #fff;
background: linear-gradient(180deg, transparent, #353535, transparent);
background-position: 50%;
background-repeat: repeat-y;
background-size: 1px auto;
}