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
| <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ForumMain.master" | |
| Inherits="System.Web.Mvc.ViewPage<List<MvcForums.Models.Forum>>" %> | |
| <asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server"> | |
| <style type="text/css"> | |
| #filterHeader | |
| { | |
| margin-bottom: 10px; | |
| font-size: 16px; |
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
| Geocoder geocoder = new Geocoder(digitalGraffiti,Locale.getDefault()); | |
| List<Address> addresses = null; | |
| try { | |
| addresses = geocoder.getFromLocationName(input.getText().toString(), MAX_GEOCODER_RESULT); |
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
| void FilterBrush::mouseMoveEvent(QMouseEvent* event, PaintArea *ourImage) | |
| { | |
| QImage* qImage = ourImage->getImage(); | |
| int xCenter = event->pos().x(), yCenter = event->pos().y() , radius = 35; | |
| int left = xCenter - radius; | |
| int right = left + radius * 2; | |
| int top = yCenter - radius; |
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
| <h2>What's happening near you</h2> | |
| {% for newsitem in newsItems %} | |
| <div class="row"> | |
| <div class="span1"> | |
| <p class="latest-schema">{% map_icon_img newsitem.schema %}</p> | |
| <p class="latest-month">{{ newsitem.item_date|date:"M" }}</p> | |
| <p class="latest-day">{{ newsitem.item_date|date:"d" }}</p> | |
| </div> |
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
| SHELL=/bin/bash | |
| DJANGO_SETTINGS_MODULE=ksublock.settings | |
| VIRTUAL_ENV=/home/opencampus/openblock | |
| BUILT_IN_SCRAPERS=/home/opencampus/openblock/lib/python2.6/site-packages/ebdata/scrapers | |
| BINDIR=/home/opencampus/openblock/bin | |
| PYTHON=/home/opencampus/openblock/bin/python | |
| HTTP_CACHE=/tmp/openblockproject_scraper_cache | |
| CUSTOM_SCRAPERS=/home/opencampus/openblock/src/ksublock/ksublock/scrapers |
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
| scraper_text = “A professor from White Hall will be at the Student Centerl" | |
| grab_results = place_grabber(scraper_text) | |
| print grab_results | |
| [(18, 32, 'Student Center'), (37, 47, 'White Hall')] |
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
| { | |
| 'schema_list': s_list, | |
| 'browsable_locationtype_list': browsable_locationtype_list, | |
| 'bodyclass': 'schema-list', | |
| } |
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
| # Initial design of Class Wrapper for super happy fun time access of the Yelp API | |
| # Mad love to the crew @ yelp and the code @ https://github.com/Yelp/yelp-api/blob/master/v2/python/ | |
| import oauth2 as oauth | |
| import simplejson as json | |
| import urllib2 | |
| import urllib | |
| class YelpApi: | |
| token = "" |
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
| public static JSONArray HttpGetJSON(String url) throws ClientProtocolException, IOException | |
| { | |
| JSONArray jsonArrayResults = null; | |
| HttpClient client = new DefaultHttpClient(); | |
| HttpGet loginPost = new HttpGet(url); | |
| HttpResponse response=client.execute(loginPost); | |
| String phpJsonResults= EntityUtils.toString(response.getEntity()); | |
| try { | |
| jsonArrayResults = new JSONArray(phpJsonResults); | |
| } catch (JSONException e) { |
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
| #ifndef _ETHICALTHEORY_H_ | |
| #define _ETHICALTHEORY_H_ | |
| #include "Outcome.h" | |
| #include "Situation.h" | |
| #include "Value.h" | |
| #include "Action.h" | |
| #include <vector> |
NewerOlder