Skip to content

Instantly share code, notes, and snippets.

You don't (may not) need Lodash/Underscore

Avoid use lodash functions if native ES6 alternative exists

Quick Links

Array

  1. _.chunk
  2. _.compact
  3. _.concat
@miiGit
miiGit / background.js
Created January 30, 2017 20:42
Chrome Web App Window State
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('window.html', {
id: "mainwin",
innerBounds: {
width: 700,
height: 600
}
});
});
@meganetaaan
meganetaaan / gist:d76d1dbf35ed5ca27a9f
Created March 4, 2016 07:57
20160304_PtlSampleTest.log
2016-03-04 15:19:46,530 [main] DEBUG com.htmlhifive.pitalium.core.config.PtlTestConfig - System startup arguments: {}
2016-03-04 15:19:46,596 [main] DEBUG com.htmlhifive.pitalium.core.config.PtlTestConfig - [Load config] (EnvironmentConfig):
{"execMode":"TAKE_SCREENSHOT","hubHost":"localhost","hubPort":4444,"maxThreadCount":16,"maxThreadExecuteTime":3600,"maxDriverWait":30,"capabilitiesFilePath":"201
50915_capabilities.json","persister":"com.htmlhifive.pitalium.core.io.FilePersister","webDriverSessionLevel":"TEST_CASE","debug":false}
2016-03-04 15:19:46,613 [main] DEBUG com.htmlhifive.pitalium.core.selenium.PtlCapabilities - Capabilities loaded. (size: 3)
2016-03-04 15:19:46,636 [main] INFO com.htmlhifive.pitalium.core.rules.ResultCollector - [TestClass start] (class: com.htmlhifive.pitalium.sample.PtlSampleTest)
2016-03-04 15:19:46,645 [main] DEBUG com.htmlhifive.pitalium.core.config.PtlTestConfig - [Load config] (PersisterConfig): {"file":
@Pulimet
Pulimet / AdbCommands
Last active May 1, 2024 20:00
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@OlivierKobialka
OlivierKobialka / regex.md
Created December 25, 2023 12:44
Private and Public Key Regex
@trusktr
trusktr / image-grid.md
Last active May 1, 2024 19:59
Image grid in Markdown
screen shot 2017-08-07 at 12 18 15 pm blah screen shot 2017-08-07 at 12 18 15 pm screen shot 2017-08-07 at 12 18 15 pm
@Klerith
Klerith / modal.css
Created June 8, 2020 17:40
React Modal Styles
/* Modal */
.ReactModalPortal > div{
opacity: 0;
}
.ReactModalPortal .ReactModal__Overlay {
align-items: center;
display: flex;
justify-content: center;
transition: opacity .2s ease-in-out;
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 1, 2024 19:56
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@mdegat01
mdegat01 / update_notifications.yaml
Last active May 1, 2024 19:56
Update Notifications Automation Blueprint
blueprint:
name: Update notifications
description: Send notifications for new updates and install or skip on action
homeassistant:
min_version: '2022.4.0'
domain: automation
input:
update_entities:
name: Update entities
description: >-
@paulirish
paulirish / bling.js
Last active May 1, 2024 19:56
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;