This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
#!/usr/bin/env python | |
from subprocess import check_call, CalledProcessError | |
from tempfile import NamedTemporaryFile | |
from dpms import DPMS | |
from mss import mss | |
from PIL import Image, ImageFilter | |
GAUSSIAN_BLUR_RADIUS = 5 |
# Brightness | |
0 - Off | |
1 - Low | |
2 - Medium | |
3 - High | |
echo 1 > /sys/class/leds/asus::kbd_backlight/brightness | |
# State, when backlight is enabled |
// Bookmarklet | |
javascript: (function(a) { | |
var b = a.document; | |
try { | |
a.CLIPBOARD.client.Clipper.instances["_d09a13b8af38e2f71b4f1626c07e1c42"].activate(); | |
return | |
} catch(e) {} | |
var c = b.createElement("script"), | |
d = b.getElementsByTagName("head")[0], | |
a = a.location.protocol; |
<html> | |
<head> | |
<title>Subscriber Test Page</title> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/reset-fonts-grids/reset-fonts-grids.css"> | |
<style type="text/css" media="screen"> | |
body { | |
font-family: Myriad Pro, Helvetica, Arial; | |
font-size:138.5%; | |
} | |
h1 { |
/** | |
* Isotope v1.5.25 | |
* An exquisite jQuery plugin for magical layouts | |
* http://isotope.metafizzy.co | |
* | |
* Commercial use requires one-time purchase of a commercial license | |
* http://isotope.metafizzy.co/docs/license.html | |
* | |
* Non-commercial use is licensed under the MIT License | |
* |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
A step by step introduction into the AWK command, it's syntax, uses and sample use cases.
The awk
command is a column based manipulation tool that can be used for a variety of things, from reading CSVs to killing processes, literally.
At the very core, AWK is based on the following
awk '{expression to qualify output} {print $output expression}'
Although it's a cli tool, it offers a lot of programming language paradigms such as
{ | |
"meta": { | |
"code": 200 | |
}, | |
"data": { | |
"items": [{ | |
"generator": { | |
"link": "http://wedge.natestedman.com", | |
"name": "Wedge", | |
"client_id": "PDvZfuW8zhzjwU8PF9KEzFbAcTn6T67U" |
Run this script line by line here, and when you make it work there it will work in pourover.
from google.appengine.api import urlfetch
resp = urlfetch.fetch('http://www.vlachbild.de/feed/', deadline=60)
print resp.content