#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| /* How to select a range of children | |
| * (Here, 3rd-7th children, inclusive): | |
| */ | |
| ul li:nth-child(n+3):nth-child(-n+7) { | |
| outline: 1px solid #0f0; | |
| } |
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
| package com.itextpdf; | |
| import com.itextpdf.text.Rectangle; | |
| import com.itextpdf.text.pdf.PdfArray; | |
| import com.itextpdf.text.pdf.PdfDictionary; | |
| import com.itextpdf.text.pdf.PdfName; | |
| import com.itextpdf.text.pdf.PdfReader; | |
| import com.itextpdf.text.pdf.PdfString; | |
| import com.itextpdf.text.pdf.parser.FilteredTextRenderListener; | |
| import com.itextpdf.text.pdf.parser.LocationTextExtractionStrategy; |
| #!/usr/bin/env bash | |
| # | |
| # This is sp, the command-line Spotify controller. It talks to a running | |
| # instance of the Spotify Linux client over dbus, providing an interface not | |
| # unlike mpc. | |
| # | |
| # Put differently, it allows you to control Spotify without leaving the comfort | |
| # of your command line, and without a custom client or Premium subscription. | |
| # |
| /* | |
| Timer | |
| - utilises animation frames (with a fallback to setTimeout when using the polyfill, below) | |
| - returns remaining (or running) time | |
| - pass a callback [fn], with an optional duration [ms] and autotart [bool], to the constructor or 'init' method | |
| eg. new Timer(foo, 1000) *or* (new Timer()).init(foo, 0, true) | |
| - for uniform x-browser support combine with the requestAnimationFrame polyfill from Erik Möller, et. al. | |
| [https://github.com/darius/requestAnimationFrame] | |
| */ |
| <html> | |
| <head> | |
| <title>AudioPlayground</title> | |
| <style>* {box-sizing: border-box;}</style> | |
| </head> | |
| <body> | |
| <h3>AudioPlayground</h3> | |
| <p>If you're happy and you know it, clap your hands!</p> | |
| <script> | |
| var Recording = function(cb){ |
| // Define a camera XY object | |
| Game.camera = new XY(); | |
| // game draw function: | |
| Game.draw = function(xy) { | |
| var entity = this.level.getEntityAt(xy); | |
| var visual = entity.getVisual(); | |
| this.display.draw(xy.x - this.camera.x, xy.y - this.camera.y, visual.ch, visual.fg, visual.bg); | |
| }; |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');This is a full guide for people who wanted to set up Windows 10/11 VM with QEMU/KVM hypervisor enhancements for a laptop that is configured with hybrid graphics card like Intel/AMD + NVIDIA. This process will take about 1 to 2 hours, depending on your system's performance and your patience =)
There is another comprehensive guide you can follow here (shoutout to asus-linux team who made supergfxctl which is a very important tool for this guide). It is more up-to-date than mine. I would probably incorporate those information into my guide, but you are welcome to use this one as a reference!