This files contains my boilerplates for jQuery plugins.
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
run: | |
casperjs index.js && convert *.jpg video.mpeg && gify video.mpeg out.gif && rm *.jpg video.mpeg |
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
#!/bin/bash | |
# Runs our end to end tests in casperjs. | |
# Run this script as follows from the project root; | |
# | |
# bin/run_e2e_tests | |
printf "\e[93m > SEARCHING FOR TEST FILES \033[0m \n" | |
find "$PWD" -iname "*.e2e.spec.js" -type f -print0 | while read -d '' -r file; do |
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
# Generate a private key | |
openssl genrsa -des3 -out server.key.org 1024 | |
# Generate a CSR: Certificate Signing Request | |
openssl req -new -key server.key.org -out server.csr | |
# Remove password from key | |
openssl rsa -in server.key.org -out server.key | |
# Generate a self-signed certificate |
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
<snippet> | |
<content><![CDATA[ | |
/** | |
* Get $1 | |
* | |
* @return ${2:[type]} \$$1 | |
*/ | |
public function get${1/(.*)/\u$1/}() | |
{ | |
return \$this->${1:$SELECTION}; |
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 | |
public function testAddBox() | |
{ | |
$package = new Entity\Package(); | |
$box = new \Mock\MyLittle\Bundle\BoxBundle\Entity\Box; | |
$this | |
->object($package->addBox($box)) | |
->isIdenticalTo($package) |
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
"use strict"; | |
(function($, undefined) { | |
var Plugin, defaults, namespace; | |
namespace = 'myPopin'; | |
defaults = { | |
duration: 1000, | |
onOpen: function() {} | |
}; |
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
// Scroll to the bottom of the friend list and type the following line in your console | |
// For checkboxes (e.g. invite to an event) | |
var c = document.querySelectorAll("a[role='checkbox']"); for (var i = 0; i < c.length; i++) c[i].click(); | |
// For invite buttons (e.g. invite to like a page) | |
var c = document.querySelectorAll(".uiButton._1sm"); for (var i = 0; i < c.length; i++) c[i].click(); |
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 childProcess; | |
try { | |
childProcess = require("child_process"); | |
} catch (e) { | |
this.log(e, "error"); | |
} | |
if (childProcess) { | |
childProcess.execFile("/bin/bash", ["mycommand.sh", args1, args2, args3], null, function (err, stdout, stderr) { | |
this.log("execFileSTDOUT:", JSON.stringify(stdout), 'debug'); |
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 | |
namespace Standalone\Form; | |
use \Symfony\Component\HttpFoundation as SHttp; | |
use \Symfony\Component\Form as SForm; | |
use \Symfony\Component\DependencyInjection as SDI; | |
use \Symfony\Bridge as SBridge; | |
//Register all your autoload function here | |
//... |
OlderNewer