-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add artifact loading from gists #43
Conversation
That's an awesome sauce! Thanks. Quick question: are you sure the user name is needed? I think hash is enough to identify the gist. |
Hmm, you may be right, but I can't get it to work with any combination of the parts of https://gist.githubusercontent.com/brendankenny/75d281c83d98d7f0e070/raw/code.asm Do you know what the URL pattern should be? |
Apparently I am not sure if HttpRequest correctly follows the redirect though Vyacheslav Egorov On Fri, Apr 3, 2015 at 11:01 AM, Brendan Kenny notifications@github.com
|
Confirmed |
Good catch! I had no idea that worked. Updated, PTAL. Github does a 302 redirect and still serves with |
Add artifact loading from gists
LGTM, thanks! I will redeploy some time today. |
Redeployed. |
Looks good, and the new loading toasts are great. |
Yeah, when I was testing I noticed that I did not use this toast on all code paths and even when I used it - it showed the wrong toast because I broke it at some point. Guh. Testing... I totally need some tests set up fro this thing. |
I've wanted to be able to share irhydra views via URL for some time. When I went in there today to see the feasibility of this, I noticed you had already added support for loading from a Drive account, so rather than filing an issue I just adapted that code to load from gists, as long as the gist has a
hydrogen.cfg
and acode.asm
file.Not sure if you had plans around loading files, and I haven't written any Dart in about 2 years, so feel free to close this PR without hurting my feelings :)
I put up a demo on my fork. The artifacts in
https://gist.github.com/brendankenny/75d281c83d98d7f0e070
are loaded by adding
#gist:brendankenny/75d281c83d98d7f0e070
to the URL. Demo Page