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
/** | |
* Creates a RegExp from the given string, converting asterisks to .* expressions, | |
* and escaping all other characters. | |
*/ | |
function wildcardToRegExp (s) { | |
return new RegExp('^' + s.split(/\*+/).map(regExpEscape).join('.*') + '$'); | |
} | |
/** | |
* RegExp-escapes all characters in the given string. |
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
// ==UserScript== | |
// @name Udemy Calc | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.udemy.com/course/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=udemy.com | |
// @grant none | |
// @require https://code.jquery.com/jquery-3.6.0.min.js |
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
var data = [ | |
{ | |
x: 'Ala-04', | |
y: 1 | |
}, | |
{ | |
x: 'Ala-04', | |
y: 1 | |
}, | |
{ |
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
// ==UserScript== | |
// @name Baixar filmes | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.baixarfilmetorrent.net/* | |
// @match https://www.baixafilme.net/* | |
// @icon https://www.google.com/s2/favicons?domain=baixarfilmetorrent.net | |
// @require https://unpkg.com/vue@2.6.14/dist/vue.min.js |
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
ul.encomendas { | |
margin: 0; | |
padding: 25px 15px; | |
position: relative; | |
} | |
ul.encomendas li { | |
display: block; | |
transition-duration: 0.5s; | |
position: relative; | |
color: #fff; |
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
.jsondiffpatch-delta { | |
font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace; | |
font-size: 12px; | |
margin: 0; | |
padding: 0 0 0 12px; | |
display: inline-block; | |
} | |
.jsondiffpatch-delta pre { | |
font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace; | |
font-size: 12px; |
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
//events - a super-basic Javascript (publish subscribe) pattern | |
var events = { | |
events: {}, | |
on: function (eventName, fn) { | |
this.events[eventName] = this.events[eventName] || []; | |
this.events[eventName].push(fn); | |
}, | |
off: function(eventName, fn) { | |
if (this.events[eventName]) { |
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
# without git | |
#----------------------------------------------------------------------------------------------------------------------------------------- | |
export PS1='\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\e[34;40m\]\u@\h \[\033[35m\]$MSYSTEM\[\033[33m\]\w\[\033[36m\]\[\033[0m\]\n$' | |
# with git | |
#----------------------------------------------------------------------------------------------------------------------------------------- | |
export PS1='\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\e[34;40m\]\u@\h \[\033[35m\]$MSYSTEM\[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$' | |
#----------------------------------------------------------------------------------------------------------------------------------------- | |
with git green/yellow | |
#----------------------------------------------------------------------------------------------------------------------------------------- | |
export PS1='\[\033]0;$MSYSTEM:${PWD//[^[:ascii:]]/?}\007\]\[\033[32m\]\u@\h \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n' |
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
import { Component, OnInit } from '@angular/core'; | |
import { NotificationService } from './notification.service'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'] | |
}) | |
export class Exemplo1Component implements OnInit { |
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
import { Component, OnInit } from '@angular/core'; | |
import { OfertasServices, Oferta } from './ofertas.service'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'] | |
}) | |
export class AppComponent implements OnInit { | |
title = 'exemplo'; |
NewerOlder