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
| What I’d like you to know about me | |
| I’m preparing for the Life in the UK Test. I’m not from the UK, so many facts (especially dates, names, and acts of parliament) feel random. I learn best with clear, plain-English explanations first, then memory aids (mnemonics, stories, patterns), and lots of active-recall practice. Please help me understand why an answer is correct and how to remember it quickly under test pressure. | |
| How I’d like you to respond | |
| 1. Teaching style | |
| • Start with a 2–3 sentence overview in plain English, then expand only as needed. | |
| • Prefer patterns over trivia: show timelines, clusters (by century/theme), and cause→effect links. | |
| • When a fact looks random, build a mnemonic or micro-story for me (acronyms, rhymes, chunking, number-shape/peg system, PAO if helpful). |
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
| package main | |
| /* | |
| Following program tries to exhibit dirty reads | |
| in SQLite by writing and reading in 2 tx | |
| from single connection. | |
| It does not succeed and I'm trying to understand why. | |
| I would expect TX 2 read value = 1 as per | |
| https://sqlite.org/isolation.html. |
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
| # What am I trying to is to have a directory from docker host as a volume | |
| # on my logstashforwarder container as /logs/weblogs. The directory itself | |
| # is a volume from weblogs container. | |
| # The directory name is /mnt/sda1/var/lib/docker/vfs/dir/df7348dc27f7b45f3e6827527bd9bba0d597a5619a5efea386829e5c7d279089. | |
| $ fig --version | |
| fig 1.0.1 | |
| $ docker -v | |
| Docker version 1.4.1, build 5bc2ff8 |
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
| $("body").find(".course-item-list-section-list").each(function(num, el) { var linksTexts = $(el).find(".lecture-link").text(); var match = linksTexts.match(/\d+ min\)/g); var i = 0, k, totalDuration = 0; for (i = 0; i < match.length; i++) { totalDuration += parseInt(match[i]); }; $(el).prev().text($(el).prev().text() + " (" + totalDuration + " mins)"); }) |
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
| <?php | |
| declare(ticks = 1); // needed | |
| function sig_handler($signo) { | |
| echo "Caught $signo...\n"; | |
| } | |
| pcntl_signal(SIGUSR1, "sig_handler"); | |
| echo 'Hi!' . PHP_EOL; |