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:
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:
#!/bin/bash | |
# v 2.7 | |
# https://gist.github.com/mbierman/dd45821b53d5d22147cef217f0c0fe95 | |
# Variables | |
update="false" | |
reboot="false" | |
hostname=$(hostname) | |
docker="/.dockerenv" |
#!/bin/bash | |
# Copyright (c) <2018> <Maksym Rusynyk> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |
In this talk we will be all discussing the origin of the furry fandom. How we will thogheter create a new furry-in-js framework. We will going over how they have changed the current fandom world, our hearts and the js world in 5 very awesome minutes! This talk is to prove a point that stars mean nothing in this case.
#!/usr/bin/env node | |
console.log('yay gist') |
#!/usr/bin/env ruby | |
require 'JSON' | |
device_types = JSON.parse `xcrun simctl list -j devicetypes` | |
runtimes = JSON.parse `xcrun simctl list -j runtimes` | |
devices = JSON.parse `xcrun simctl list -j devices` | |
devices['devices'].each do |runtime, runtime_devices| | |
runtime_devices.each do |device| |
/// @name has_events | |
/// @author Tyler Benton | |
/// @description | |
/// Utility to list out elements that have event listeners. Their listeners will be listed out in the console. | |
/// @arg {string} target ["*"] | |
/// @note {10} - Only works if you copy this code and paste it in the chrome console. | |
/// @markup {js} | |
/// has_events(); // lists out all elements | |
/// has_events("a"); // lists out all anchor tags that have event listeners | |
function has_events(target){ |
tell application "System Events" | |
tell security preferences | |
set require password to wake to true | |
end tell | |
end tell | |
activate application "ScreenSaverEngine" |
osascript -e 'tell application "iOS Simulator" to quit' | |
osascript -e 'tell application "Simulator" to quit' | |
xcrun simctl erase all |
function dedent(callSite, ...args) { | |
function format(str) { | |
let size = -1; | |
return str.replace(/\n(\s+)/g, (m, m1) => { | |
if (size < 0) | |
size = m1.replace(/\t/g, " ").length; |