[■,■,■,■].map(■ → ●) ⇒ [●,●,●,●]
[■,●,■,▲].filter(■ → true) ⇒ [■,■]
[■,●,■,▲].find(● → true) ⇒ ●
[■,●,■,▲].findIndex(▲ → true) ⇒ 3
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 Subselect: | |
SELECT count(child.cid), parent.cid, user.uid, user.name, node_field.nid, node_field.title | |
FROM comment_field_data as parent | |
LEFT JOIN comment_field_data AS child ON parent.cid = child.pid | |
INNER JOIN users_field_data as user ON parent.uid=user.uid | |
INNER JOIN node_field_data as node_field ON parent.entity_id=node_field.nid | |
GROUP BY parent.cid | |
ORDER BY COUNT(child.cid) DESC; |
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
never@t470-never-20:38-~$ git aliases | |
ci=commit | |
cia=commit -a | |
ciam=commit --amend | |
stl=stash list | |
stp=stash pop | |
sts=stash save | |
stsu=stash save -u | |
stsp=stash show -p | |
subin=submodule init |
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
http://example.com/foobar/http://example.com/foobar/ |
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
def elo_tilos_jelzes_utasitasok(): | |
pins.digital_write_pin(DigitalPin.P0, 0) | |
def on_button_pressed_a(): | |
global szabad | |
while foglalt: | |
basic.pause(100) | |
if szabad: | |
szabad = False | |
elo_tilos_jelzes_utasitasok() |
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
x-volumes: | |
&x-volumes | |
volumes: | |
- ./docker-repo:/var/lib/docker | |
- ./project:/app | |
services: | |
docker: | |
# Starts a Docker daemon at the DNS name "docker" | |
# Note: |
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
// 1. Open the browser developper console on the network tab | |
// 2. Start the video | |
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
// 4. Run: node vimeo-downloader.js "<URL>" | |
// 5. Combine the m4v and m4a files with mkvmerge | |
// or use ffmpeg: "ffmpeg -i video.mp4 -i audio.wav -c copy output.mkv" | |
const fs = require('fs'); | |
const url = require('url'); | |
const https = require('https'); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<gpx creator="StravaGPX Android" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" xmlns="http://www.topografix.com/GPX/1/1"> | |
<metadata> | |
<time>2020-03-03T09:01:56Z</time> | |
</metadata> | |
<trk> | |
<name>Morning Walk</name> | |
<type>10</type> | |
<trkseg> | |
<trkpt lat="48.0052760" lon="21.7257150"> |
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
sed -i -re '/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com(.*)/a \1' sources.list |
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
diff --git a/commands/core/drupal/site_install_6.inc b/commands/core/drupal/site_install_6.inc | |
index 21424fb9b..d88110b54 100644 | |
--- a/commands/core/drupal/site_install_6.inc | |
+++ b/commands/core/drupal/site_install_6.inc | |
@@ -18,7 +18,7 @@ function drush_core_site_install_version($profile) { | |
$cli_output = drush_shell_exec_output(); | |
$cli_cookie = end($cli_output); | |
- // We need to bootstrap the database to be able to check the progress of the | |
+ // We need to bootstrap the database to be able to check the progress of the |
NewerOlder