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
| var express = require('express'); | |
| var request = require('request'); | |
| var app = express(); | |
| var APICALLNAME = 'set this here ... maybe other names I have no idea, nick' | |
| app.get('/'+APICALLNAME, function(req, res) { | |
| request.get({ | |
| url: 'twitter apicall url', json:true}, function(error, response, body){ | |
| res.json(response); // assuming you're getting json not other stuff like xml or something | |
| }); | |
| }); |
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 python | |
| from django.core.management import execute_manager | |
| try: | |
| import settings # Assumed to be in the same directory. | |
| except ImportError: | |
| import sys | |
| sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) | |
| sys.exit(1) | |
| if __name__ == "__main__": |
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
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| cout << "test" << endl; | |
NewerOlder