Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const googleAnalytics = event => { | |
switch (event.type) { | |
default: | |
window.dataLayer.push(event) | |
} | |
} | |
const facebook = event => { | |
switch (event.type) { | |
case 'pageview': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var _prefix = 'ga'; | |
// Ensure we have a GTM Data Layer to push to. | |
window['dataLayer'] = window['dataLayer'] || {}; | |
// Instead of overdeclaring _gaq, only attempt to polyfill if it doesn't already exist. | |
if (window['_gaq'] === 'undefined '|| typeof window['_gaq'] !== 'object') { | |
window['_gaq'] = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BX.namespace('BX.Sale.OrderAjaxComponent'); | |
(function() { | |
'use strict'; | |
/** | |
* Show empty default property value to multiple properties without default values | |
*/ | |
if (BX.Sale && BX.Sale.Input && BX.Sale.Input.Utils) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# license: cc0/public domain | |
import re | |
import sys | |
import subprocess | |
input_file = sys.argv[1] | |
output_file = input_file.replace('.tex', '.bib') | |
with open(input_file, "r") as f: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt install git | |
git clone https://gitlab.com/st42/termux-sudo | |
cd termux-sudo | |
cat sudo > /data/data/com.termux/files/usr/bin/sudo | |
chmod 700 /data/data/com.termux/files/usr/bin/sudo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WTF YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Alexey Silin <pinkoblomingo@gmail.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WTF YOU WANT TO PUBLIC LICENSE |
Install pandoc(https://pandoc.org/getting-started.html)
Clone this Gist find the two files: .less-filter-to-man
& md-to-pdf.sh
1 Add to your /home
or ~
directory. 📘
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SMACSS Property Order | |
# http://smacss.com/book/formatting | |
# Box | |
content | |
display | |
float | |
flex |
NewerOlder