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 com.springsource.petclinic; | |
import com.springsource.petclinic.domain.Owner; | |
import com.springsource.petclinic.domain.Pet; | |
import com.springsource.petclinic.domain.Vet; | |
import com.springsource.petclinic.domain.Visit; | |
import com.springsource.petclinic.reference.PetType; | |
import com.springsource.petclinic.reference.Specialty; | |
import org.springframework.context.ApplicationListener; | |
import org.springframework.context.event.ContextRefreshedEvent; |
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
from __future__ import with_statement | |
import functools | |
import os | |
import sys | |
from fabric.api import * | |
from fabric.colors import green, red, green | |
import datetime | |
import re |
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
def restore_namespace_after(func): | |
"""Decorator that ensures that restore the original namespace after the function has | |
been executed in appengine.""" | |
@functools.wraps(func) | |
def decorated_func(*args, **kwargs): | |
namespace = namespace_manager.get_namespace() | |
res = func(*args, **kwargs) | |
namespace_manager.set_namespace(namespace) | |
return res | |
return decorated_func |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Newtonsoft.Json.Linq; | |
using System.IO; | |
namespace ConsoleApplication1 | |
{ |
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
diff --git a/frameworks/foundation/views/upload.js b/frameworks/foundation/views/upload.js | |
index 0447687..90f534f 100644 | |
--- a/frameworks/foundation/views/upload.js | |
+++ b/frameworks/foundation/views/upload.js | |
@@ -11,6 +11,46 @@ | |
@author Evin Grano | |
*/ | |
+// Add the bind() function to the Function prototype. | |
+SC.mixin(Function.prototype, { |
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
AS.AutoResizeTextAreaView = SC.TextFieldView.extend( | |
/** @scope AS.AutoResizeTextAreaView.prototype */ { | |
isTextArea: YES, | |
layout: {minHeight: 50}, | |
didCreateLayer: function() { | |
sc_super(); | |
this.initAutoResize(); | |
}, |
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
from selenium import webdriver | |
def select_from_chosen(driver, id, value): | |
chosen = driver.find_element_by_id(id + '_chzn') | |
results = chosen.find_elements_by_css_selector(".chzn-results li") | |
found = False | |
for result in results: | |
if result.text == value: |
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 unittest | |
import datetime | |
from sys import * | |
from selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
import login_dom | |
class BaseTests(unittest.TestCase): |
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
from selenium.common.exceptions import NoSuchElementException, TimeoutException | |
class DomHelper(object): | |
driver = None | |
waiter = None | |
def open_page(self, url): | |
self.driver.get(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
// Let's add a new Email record | |
$parameters = array( | |
'session' => $sessionId, | |
'module' => 'Emails', | |
'name_value_list' => array( | |
array('name' => 'name', 'value' => 'email body'), | |
array('name' => 'from_addr', 'value' => '[email protected]'), | |
array('name' => 'to_addrs', 'value' => '[email protected]'), | |
array('name' => 'date_sent', 'value' => gmdate("Y-m-d H:i:s")), | |
array('name' => 'description', 'value' => 'This is an email created from a REST web services call'), |
OlderNewer