This file contains 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 os | |
import socket | |
hostname = socket.gethostname() | |
print '----------------------------------' | |
print hostname | |
if hostname == "Codesign": |
This file contains 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
<?php | |
header('Content-type: application/json'); | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
require_once 'settings_crowdcafe_local.php'; | |
require_once 'libs/firebase/firebaseLib.php'; | |
function setFirebaseValue($path, $value) { | |
require_once 'settings_firebase.php'; |
This file contains 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
<script> | |
$('.social-feed-container').socialfeed({ | |
//FACEBOOK-------------------- | |
facebook:{ | |
accounts:['@teslamotors','#teslamotors'], | |
limit:2, | |
access_token:'YOUR_FACEBOOK_TOKEN' // go to https://developers.facebook.com/tools/explorer/ to get one | |
}, | |
//VK-------------------- | |
vk:{ |
This file contains 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
<soap:Envelope | |
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | |
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> | |
<soap:Body xmlns:m="http://ws.document.introsde/"> | |
<m:createPerson> | |
<person> | |
<lastname>John</lastname> | |
</person> | |
</m:createPerson> | |
</soap:Body> |
This file contains 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
package client; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.xml.ws.handler.Handler; | |
import javax.xml.ws.handler.HandlerResolver; | |
import javax.xml.ws.handler.PortInfo; | |
public class JaxWsHandlerResolver implements HandlerResolver { |
This file contains 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
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | |
<SOAP-ENV:Header/> | |
<S:Body> | |
<ns2:createPersonResponse xmlns:ns2="http://ws.document.introsde/"> | |
<personId>0</personId> | |
</ns2:createPersonResponse> | |
</S:Body> | |
</S:Envelope> |
This file contains 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 requests | |
import json | |
class Flower: | |
DEFAULT_API_URL = 'https://api.crowdflower.com/v1/' | |
DEFAULT_API_HEADERS = {'content-type': 'application/json'} | |
def __init__(self, api_key, api_url = DEFAULT_API_URL, api_headers = DEFAULT_API_HEADERS): | |
self.api_key = api_key | |
self.api_url = api_url |
This file contains 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
<script> | |
$(document).ready(function(){ | |
$('.social-feed-container').socialfeed({ | |
facebook:{ | |
accounts: ['@teslamotors','#teslamotors'], | |
limit: 2, | |
access_token: 'YOUR_FACEBOOK_ACCESS_TOKEN' // APP_ID|APP_SECRET | |
}, | |
This file contains 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
[ | |
{ "url":"http://www.babson.edu/Academics/undergraduate/academic-programs/PublishingImages/san-franc.jpg", | |
"title":"Golden Gate" | |
}, | |
{ "url":"http://cityofangelsprods.com/wp-content/uploads/2013/05/aerial-sf-for-site.jpg", | |
"title":"San Francisco" | |
}, | |
{ "url":"http://f1.fsm.wikidi.com/af/aa/ax/26ba9e44416314921ddc83a4b2cf62bfc5df9b84.jpg", | |
"title":"Alcatraz" | |
}, |