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 Browser = require("zombie"); | |
var assert = require("assert"); | |
// Load the page from localhost | |
browser = new Browser() | |
browser.visit("https://sellercentral.amazon.com/gp/homepage.html", function (e,b) { | |
// Fill email, password and submit form | |
b.field("#email"); |
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
// awesome special event | |
// this adds the method every time you drop, shouldn't there be a way to just | |
// add this once to core $.event.drop ? | |
$.event.special.drop = { | |
add: function( handleObj ) { | |
var old_handler = handleObj.handler; | |
handleObj.handler = function( event ) { | |
console.log("every time?"); | |
// Modify event object here! |
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(this.particles.length) { | |
var i, | |
particles = this.particles, | |
length = particles.length; | |
//ctx.globalAlpha = 1; | |
for(i = 0; i < length; i++){ | |
//ctx.globalAlpha = this.particles[i].opacity; | |
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
// Twitter Object | |
var Twitter = Social.inherit({ | |
el : null, | |
api : "http://platform.twitter.com/anywhere.js?id=jU6TJqf8mVs4qEVidQdoWw&v=1.2", | |
_construct : function() { | |
if(location.hash && location.hash.indexOf("oauth_access_token") != -1) { | |
this.login(); | |
} | |
}, | |
login : function(e,el) { |
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 post() { | |
$post = $this->_safeMysql(); | |
// shorten the description to 256 char | |
$desc = stripslashes(substr(implode(" ",$post['body']),0,256)); | |
$title = stripslashes(stripslashes($post['title'])); | |
$attachment = array( | |
'message' => $title, | |
'name' => 'NewsUp', |
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
<table> | |
<tr> | |
<th col="Username">Username</th> | |
<th col="FirstName">First Name</th> | |
<th col="Lastname">Last Name</th> | |
<th col="Email">Email</th> | |
</tr> | |
</table> |
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
<table class="users" action="ajax.php"> | |
<tr> | |
<th col="Username">Username</th> | |
<th col="FirstName">First Name</th> | |
<th col="Lastname">Last Name</th> | |
<th col="Email">Email</th> | |
</tr> | |
</table> |
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 | |
require_once("grid.php"); | |
$grid = new Grid("users", array( | |
"delete"=>true | |
)); | |
?> |
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 | |
require_once("grid.php"); | |
$grid = new Grid("users", array( | |
"save"=>true | |
)); | |
?> |
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 | |
echo "hello"; | |
?> |