Update 'main|dev'
with branches you want to mantain. All others will be removed.
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
// Just run it on console, inside metrolyrics.com page | |
function $ (element) { | |
return document.querySelector(element) | |
} | |
function $$ (element) { | |
return document.querySelectorAll(element) | |
} |
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
'use strict' | |
import React, { Component } from 'react' | |
import PropTypes from 'prop-types' | |
class LazyImg extends Component { | |
constructor () { | |
super() | |
this.state = { loaded: false } | |
this.img = {} |
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
'use strict' | |
class ExtractText { | |
constructor (options) { | |
this.options = options | |
this.filterFunction = this.getFilterFunction(options) | |
this.emit = this.emit.bind(this) | |
} | |
getFilterFunction (options) { |
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
'use strict' | |
import React, { Component } from 'react' | |
class MapComponent extends Component { | |
componentDidMount () { | |
window.initMap = () => { | |
const map = new google.maps.Map(document.getElementById('map'), { | |
center: {lat: -34.397, lng: 150.644}, | |
zoom: 8 |
The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55
will be the first on the list, already selected:
🇧🇷 [pt-BR]
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
<?php | |
add_filter( 'user_contactmethods', 'add_new_user_fields' ); | |
function add_new_user_fields( $user_contact ) { | |
$user_contact[ 'billing_cel_phone' ] = 'Celular'; | |
return $user_contact; | |
} |
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
; a hand-made GIF containing valid JavaScript code | |
; abusing header to start a JavaScript comment | |
; inspired by Saumil Shah's Deadly Pixels presentation | |
; Ange Albertini, BSD Licence 2013 | |
; yamal gifjs.asm -o img.gif | |
WIDTH equ 10799 ; equivalent to 2f2a, which is '/*' in ASCII, thus starting an opening comment |
https://sublime.wbond.net/installation#st3
- Source Code Pro -
sourcecodepro.sh
- Hack -
hack.sh