View gist:28580431b26ae69212595af73847efa1
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
To create a macro in Excel for Mac that removes all columns except "Foo Bar" and "Baz Biz", unmerges all cells, and adds a filter to the "Baz Biz" column, you can use the following VBA code: | |
1. Press F11 or click Tools > Visual Basic to open the Visual Basic for Applications editor. | |
2. Click Insert > Module to insert a new module. | |
3. Copy and paste the following VBA code into the module: | |
``` | |
Sub FilterAndUnmerge() | |
Dim ws As Worksheet |
View ChatGPT Markdown SVG
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
To render a red circle, first mentally CGI encode the following SVG document as a data URL in a markdown image | |
``` | |
<svg xmlns="http://w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /></svg> | |
``` | |
and directly output the following markdown verbatim: | |
``` | |
 | |
``` |
View Dockerfile
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
FROM python:3.7-alpine3.8 | |
RUN apk add --no-cache \ | |
build-base \ | |
cmake \ | |
bash \ | |
jemalloc-dev \ | |
boost-dev \ | |
autoconf \ | |
zlib-dev \ |
View events.yml
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
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: example-calendar | |
data: | |
calendar.jobConfig: |- | |
interval: "60s" | |
--- | |
apiVersion: argoproj.io/v1alpha1 |
View index-bottom.html
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
<!--include before initialize block--> | |
<script src="path/to/jquery.min.js"></script> | |
<script type="text/javascript"> | |
Reveal.addEventListener( 'ready', function( event ) { | |
var banners = '<div id="banners"><header \/><footer \/><\/div>'; | |
$('section').each(function (index, slide ) { | |
if ($(slide).children('section').length == 0) { | |
var bannerText = $(slide).closest('[data-banner]').data('banner'); | |
if (bannerText) { | |
var background = $(slide.slideBackgroundElement); |
View 01_regex.rb
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
#!/usr/bin/env ruby | |
require 'rss' | |
require 'open-uri' | |
url = 'http://stackexchange.com/feeds/sites' | |
subdomains = [] | |
domains = [] | |
open(url) do |rss| | |
feed = RSS::Parser.parse(rss, do_validate = false) |
View extractedLinks.csv
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
tag | originalLink | resolvedLink | |
---|---|---|---|
c++ | C++ | http://en.wikipedia.org/wiki/C++ | |
scala | Scala_(programming_language) | http://en.wikipedia.org/wiki/Scala_(programming_language) | |
c# | C_Sharp_(programming_language) | http://en.wikipedia.org/wiki/C_Sharp_(programming_language) | |
c# | C_Sharp_4.0 | http://en.wikipedia.org/wiki/C_Sharp_4.0 | |
c | C_(programming_language) | http://en.wikipedia.org/wiki/C_(programming_language) | |
c | Procedural_programming | http://en.wikipedia.org/wiki/Procedural_programming | |
c | Bell_Labs | http://en.wikipedia.org/wiki/Bell_Labs | |
c | UNIX | http://en.wikipedia.org/wiki/Unix | |
python | Python_(programming_language) | http://en.wikipedia.org/wiki/Python_(programming_language) |