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
| raw.githack.com is working! |
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
| import json | |
| import requests | |
| API_TOKEN = 'XXX' | |
| CAMPAIGN_ID = 'XXX' | |
| def get_page(url, headers): | |
| result = requests.get(url, headers=headers) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
| multiline() { | |
| read -r -d '' "$@" | |
| } | |
| multiline text << 'END' | |
| Hello, world! | |
| Multiline docstrings seems to work today... |
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
| using UnityEngine; | |
| using Unity.Mathematics; | |
| public class Noise : MonoBehaviour { | |
| public int width; | |
| public int height; | |
| public float scaleX; | |
| public float scaleY; | |
| public float offsetX; |
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/env ruby | |
| require 'redcarpet' | |
| class HTMLWithPants < Redcarpet::Render::HTML | |
| include Redcarpet::Render::SmartyPants | |
| end | |
| markdown = Redcarpet::Markdown.new(HTMLWithPants, fenced_code_blocks: true) | |
| puts markdown.render STDIN.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
| # usage: plug! some/repo[:branch] [file-to.load ...] | |
| # example: plug! sindresorhus/pure:main async.zsh pure.zsh | |
| # to update everything - simply remove ~/.plug directory | |
| function plug!() { | |
| local arg=("${(@s/:/)1}") && r=$arg[1] && b=${arg[2]:=master} | |
| local dir="$HOME/.plug/$r" | |
| [[ -d $dir ]] || git clone --depth=1 --branch=$b https://github.com/$r $dir | |
| for f in "${@:2}"; do source "$dir/$f"; done | |
| } |
OlderNewer