Skip to content

Instantly share code, notes, and snippets.

require_relative "test_helper"
require "open-uri"
require "net/http"
class EmojiTest < Blog::Test
def test_no_emoji
posts.each do |post|
content = File.read(post)
refute_match /:[a-zA-Z0-9_]+:/, content,
#!/bin/bash
name=JohnnyFive
email=five@johnny.alive
if [ -z ${1+x} ]; then
echo "No arguments passed, using version default values";
else
name=$1;
@Stargator
Stargator / main.dart
Last active May 4, 2018 21:45
Lookbehind in Dart
void main() {
// Lookbehind example
final String phrase = "fooback";
final RegExp lookbehindPattern = new RegExp(r'(?<=foo)back');
print('Does lookbehind work? ${lookbehindPattern.hasMatch(phrase)}');
// Negative Lookbehind example
// It would matched .text or text= but not Me.text or FtextABC
final RegExp negativeLookbehind = new RegExp(r'(?<!(Me\.)|[frFR])(text)(?!\w)');
@Stargator
Stargator / gist:8531db3b855bbbcd092faa16c1fd4908
Created May 5, 2018 00:14
Condtional and Lookbehind in Dart
void main() {
// Lookbehind example
final String phrase = "fooback";
final RegExp lookbehindPattern = new RegExp(r'(?<=foo)back');
print('Does lookbehind work? ${lookbehindPattern.hasMatch(phrase)}');
// Negative Lookbehind example
// It would match .text or text= but not Me.text or FtextABC
final RegExp negativeLookbehind = new RegExp(r'(?<!(Me\.)|[frFR])(text)(?!\w)');
@Stargator
Stargator / # git - 2018-06-22_14-08-59.txt
Created June 25, 2018 15:57
git on macOS 10.13.1 - Homebrew build logs
Homebrew build logs for git on macOS 10.13.1
Build date: 2018-06-22 14:08:59
@Stargator
Stargator / # git - 2018-06-25_11-59-45.txt
Created June 25, 2018 16:00
git on macOS 10.13.1 - Homebrew build logs
Homebrew build logs for git on macOS 10.13.1
Build date: 2018-06-25 11:59:45
@Stargator
Stargator / # git - 2018-06-27_11-57-06.txt
Created June 29, 2018 14:51
git on macOS 10.13.1 - Homebrew build logs
Homebrew build logs for git on macOS 10.13.1
Build date: 2018-06-27 11:57:06
@Stargator
Stargator / Brewfile.after
Last active June 29, 2018 14:56
Brewfiles Before and After
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/cask"
tap "homebrew/bundle"
tap "homebrew/services"
tap "dart-lang/dart"
cask "java"
cask "osxfuse"
brew "bash"
brew "bash-completion@2"
@Stargator
Stargator / # git - 2018-06-27_11-57-06.txt
Created June 29, 2018 16:14
git on macOS 10.13.1 - Homebrew build logs
Homebrew build logs for git on macOS 10.13.1
Build date: 2018-06-27 11:57:06
@Stargator
Stargator / Brewfile.after
Created June 29, 2018 16:17
June 29th Brewfiles
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/cask"
tap "homebrew/bundle"
tap "homebrew/services"
tap "dart-lang/dart"
cask "java"
cask "osxfuse"
brew "bash"
brew "bash-completion@2"