alexandrevicenzi / gistfy Goto Github PK
View Code? Open in Web Editor NEWCode once, share everywhere.
License: MIT License
Code once, share everywhere.
License: MIT License
when I copy code from gistfy and paste it somewhere an extra character gets pasted before each line.
Add an option to choose what files to show from Gist if have more than one.
Something like ?file=myfile.js
The guessLanguage
function is broken. It assumes every language definition has the alias
key which is not true. JSON for example does not have it (http://localhost:3000/github/alexandrevicenzi/gistfy/package.json).
If i set slice=1:3, it shows one more line.
For example: http://www.gistfy.com/github/ButecoOpenSource/exemplos/exemplos_python/pygtk/pygtk-form.py?slice=35:43
Pass xxx
to lang
param.
App chash with this message:
Error: Unknown language: xxx
at highlight (/home/alexandre/workspace/gistfy/node_modules/highlight.js/lib/highlight.js:393:13)
at highlight (/home/alexandre/workspace/gistfy/gistfy.js:58:21)
at /home/alexandre/workspace/gistfy/gistfy.js:282:23
at IncomingMessage.<anonymous> (/home/alexandre/workspace/gistfy/gistfy.js:89:13)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:943:16
at process._tickCallback (node.js:419:13)
Add Bitbucket Snippets support.
Console error: Uncaught SyntaxError: Unexpected token ILLEGAL
\n
is replaced in a wrong place.
Original: https://highlightjs.org/static/test.html
Gistfy: http://www.gistfy.com/index.html
Add an option to allow users to do something like this:
<div data-gist-id="1"></div>
<div data-github-url="https://github.com/alexandrevicenzi/gistfy/somefile.js"></div>
What is the parameter for making gistfy
bind to public IP, or one that I can specify manually? As far as I can recall, this used to be possible at one point. However, it's been some five months since I used it and I can't remember how I got it working.
At the moment it will only bind to 127.0.0.1
.
Is quite easy to discover all information needed using a GitHub or Bitbucket URL.
For example this url: https://github.com/alexandrevicenzi/gistfy/blob/master/static/index.html
We have the host, user, branch, repo and file path. This is the minimal information to create a gist.
This also works for Bitbucket and Gist GitHub.
When I access from:
http://gistfy.com
I get:
<script type='text/javascript' src='http://app-gistfy.rhcloud.com/github/alexandrevicenzi/pycompat/setup.py'></script>
Instead of:
<script type='text/javascript' src='http://www.gistfy.com/github/alexandrevicenzi/pycompat/setup.py'></script>
For example:
<iframe src="http://www.gistfy.com/github/butecoopensource/arduino-display-7-seg/exemplo.ino?type=html"
frameborder="0"
allowtransparency="true"
width="300px"
height="300px"></iframe>
It's not working as expected.
If the code is to big, it's not good to show everything. It would be great to have a way to hide a little bit of the code and expand later.
You should create an npm package. Gistfy is open.
Add option to cache files like Pastebin.
This is good if you change the code and don't want to change the gist.
Add a way to support private repositories.
Probably this will be used only for those who want his own server.
To support for every one we will need to cache something. Cache user/pwd is not an option, so we need to cache the file. Also, we need to provide OAuth authentication and and HTTPS server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.