Provider | Singleton | Instantiable | Configurable |
---|---|---|---|
Constant | Yes | No | No |
Value | Yes | No | No |
Service | Yes | No | No |
Factory | Yes | Yes | No |
Decorator | Yes | No? | No |
Provider | Yes | Yes | Yes |
This file contains hidden or 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
let list = []; | |
let index = 0 | |
let isFinish = false; | |
let users = document.querySelectorAll('[data-view-name="job-applicant-list-profile-card"] .artdeco-entity-lockup__title'); | |
const finishTxt = document.querySelectorAll('.artdeco-pagination__pages.artdeco-pagination__pages--number li')[document.querySelectorAll('.artdeco-pagination__pages.artdeco-pagination__pages--number li').length-1].querySelector('button').ariaLabel; | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
function updateUsers() { | |
users = document.querySelectorAll('[data-view-name="job-applicant-list-profile-card"] .artdeco-entity-lockup__title'); |
This file contains hidden or 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
// Reference: http://karma-runner.github.io/0.12/config/configuration-file.html | |
module.exports = function karmaConfig (config) { | |
config.set({ | |
frameworks: [ | |
// Reference: https://github.com/karma-runner/karma-jasmine | |
// Set framework to jasmine | |
'jasmine' | |
], | |
reporters: [ |
This file contains hidden or 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
//Works on http://web.whatsapp.com | |
// With little creativity and some coding skills you can do a lot of things using this code to annoy some one. | |
function dispatch(target, eventType, char) { | |
var evt = document.createEvent("TextEvent"); | |
evt.initTextEvent (eventType, true, true, window, char, 0, "en-US"); | |
target.focus(); | |
target.dispatchEvent(evt); | |
} | |
function triggerClick() { | |
var event = new MouseEvent('click', { |
This file contains hidden or 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
#!/bin/bash | |
Black='\033[0;30m' | |
DarkGray='\033[1;30m' | |
Red='\033[0;31m' | |
LightRed='\033[1;31m' | |
Green='\033[0;32m' | |
LightGreen='\033[1;32m' | |
BrownOrange='\033[0;33m' | |
Yellow='\033[1;33m' |
This file contains hidden or 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
git config core.fileMode false | |
git config --global alias.tree "log --graph --oneline --all --decorate" | |
git config --global alias.local "log @{u}.." | |
git config --global alias.update "fetch --progress origin" | |
git config --global credential.helper cache | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status | |
git config --global alias.last 'log -1 HEAD' |
Para criação de pastas o mais conveniente (unix) é utilizar mkdir -p
, o qual:
-p, --parents no error if existing, make parent directories as needed
tem-se então o semelhante como módulo de node, o mkdirp.
This file contains hidden or 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
.ui-datepicker { | |
background-color: #fff; | |
border: 1px solid #66AFE9; | |
border-radius: 4px; | |
box-shadow: 0 0 8px rgba(102,175,233,.6); | |
display: none; | |
margin-top: 4px; | |
padding: 10px; | |
width: 240px; | |
} |
This file contains hidden or 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
sudo add-apt-repository ppa:ppsspp/stable | |
sudo apt-get update && clear | |
sudo apt-get install ppsspp-qt | |
sudo apt-get install ppsspp-sdl | |
mkdir ~/games | |
cd ~/games |
This file contains hidden or 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 Noful = require('noful'); | |
var restService = new Noful(); | |
var Host = restService.defaulHost({ | |
host: 'localhost', | |
port: '27017', | |
database: 'test' | |
}); | |
var domains = [ |
NewerOlder