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
function aClosedClosure(name){ | |
var lastName = 'Dahlstrom'; | |
return function(firstNameLocal){ | |
if(firstNameLocal) | |
{ | |
return firstNameLocal +' '+ lastName; | |
} | |
else | |
{ | |
return lastName; |
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
POST /api/v1/document-container/27123/ HTTP/1.1 | |
Host: service.projectplace.com | |
name=New.doc&content=CONTENT_OF_FILE |
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
PUT /api/v1/document-container/2377321/New.doc HTTP/1.1 | |
Host: service.projectplace.com | |
CONTENT_OF_FILE |
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
if len(selected) == 1: | |
mem_string = 'no_of_member_added' | |
else: | |
mem_string = 'no_of_members_added' |
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
CREATE PROCEDURE [ppdbuser].[createActivityWithTitle] @project_id integer, @creator_id integer, @title varchar(255) | |
AS | |
INSERT INTO ppActivities (project_id, creator_id, title, local_id) | |
VALUES (@project_id, @creator_id, @title, (SELECT ISNULL(MAX(local_id)+1,1) FROM ppActivities WHERE project_id = @project_id)) | |
SELECT * FROM ppActivities WHERE id = scope_identity() |
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
RewriteEngine on | |
RewriteCond %{HTTP:Authorization} ^(.*)$ [NC] | |
RewriteRule /.* - [E=HTTP_AUTHORIZATION:%1] |
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
var PP = PP || {}; | |
PP.singleton = (function () { | |
var foo = function () { | |
// jsLint will warn that "bar" is not defined. Which is true in essence, but not in reality | |
// since the bar function is defined before it will be possible to call foo, it is not really an issue. | |
bar(); | |
}, | |
bar = function () { | |
alert("OMG"); |
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
1. I've put BootstrapExtension.php in my extensions folder | |
2. I've included it through LocalSettings.php | |
3. When I try to edit a page with the following | |
<row> | |
<span-one-third> | |
</span-one-third> | |
</row> | |
I get the below trace on wikimedia 1.16.1. Any ideas? |
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
class EnterpriseModule_tests(Enterprise_tests): | |
def setUp(self): | |
self.setUpEnterprise() | |
def test_ClassInModule(self): | |
""" Tests everything about the ClassInModule class """ | |
def _test_function_1(): | |
""" Tests the first function in the ClassInModule """ | |
doSomething() | |
self.assertSomething() |
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
# -*- coding: utf-8 -*- | |
""" | |
Example Usage: | |
>>> from apiconnection import ApiConnection | |
>>> settings = { | |
... 'api_endpoint': 'https://api.projectplace.com', | |
... 'consumer_key': 'REDACTED', | |
... 'consumer_secret': 'REDACTED'} |
OlderNewer