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 django.contrib.auth.models import User | |
# Create a regular user 'foo' | |
>>> user = User.objects.create_user('foo', 'foo.bar@xxx.com', 'bar') | |
# List all users | |
>>> User.objects.all() | |
[<User: admin>, <User: abegail>, <User: foo>] | |
>>> User.objects.all()[1].is_superuser |
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
### Keybase proof | |
I hereby claim: | |
* I am quoidautre on github. | |
* I am thedarkpassenger (https://keybase.io/thedarkpassenger) on keybase. | |
* I have a public key ASDiBnDXkUwmDe_9fwUzr_u6iOXl1K3-Ic3xoRoGL-J8ywo | |
To claim this, I am signing this object: |
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
### Keybase proof | |
I hereby claim: | |
* I am quoidautre on github. | |
* I am thedarkpassenger (https://keybase.io/thedarkpassenger) on keybase. | |
* I have a public key ASBRYDmyWgEjpBr8Kr7fDb67sj0IGEw7NNbWi1VVLA1jfwo | |
To claim this, I am signing this object: |
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
openalpr.IdentifyLicense(imagePath, function (error, output) { | |
// handle result | |
}); |
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
// Open form and submit enquire for `rego` | |
function getInfo(rego) { | |
horseman | |
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0') | |
.open(url) | |
.type('#registration-number-ctrl input[type=text]', rego) | |
.click('.btn-holder input') | |
.waitForSelector('.ctrl-holder.ctrl-readonly') | |
.html() | |
.then(function(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
function StaffMember(name,discountPercent){ | |
this.name = name; | |
this.discountPercent = discountPercent; | |
} | |
var sally = new StaffMember("Sally",5); | |
var bob = new StaffMember("Bob",10); | |
// Create yourself again as 'me' with a staff discount of 20% |
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
console.clear(); | |
var Person = function() {}; | |
Person.prototype.initialize = function(name, age) | |
{ | |
this.name = name; | |
this.age = age; | |
} | |
// TODO: create the class Teacher and a method teach |
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
HTML : | |
<html> | |
<form method="post" action="connexion.php"> | |
<input type="texte" name="pseudo" /> | |
<input type="submit" value="Connexion" /> | |
</form> | |
</html> | |
PHP : | |
<?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
http://www.assessmentee.com/test/module/PHP | |
http://www.skilly.com | |
http://testingcenter.people-centric.fr/tests-recrutement-it-coding.html | |
http://www.ligams.com/media/examens/test-php-intermediaire | |
https://www.proprofs.com/quiz-school/story.php?title=test-php_2 | |
https://www.proprofs.com/quiz-school/story.php?title=test-de-recrutement-dveloppeur-web | |
https://www.proprofs.com/quiz-school/story.php?title=professional-test-php-web-developers | |
http://www.tigersun.fr/test-php | |
http://www.ligams.com/media/examens/test-php-intermediaire2 | |
https://www.proprofs.com/quiz-school/story.php?title=php-programming-quiz |
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
$ sfconsole cache:clear -vvv | |
18:59:29 DEBUG [php] Warning: rmdir(/var/www/formation/symfony-blog/var/cache/de~/translations): Directory not empty | |
[ | |
"exception" => Symfony\Component\Debug\Exception\SilencedErrorContext { | |
-severity: E_WARNING, | |
trace: { | |
/var/www/formation/symfony-blog/vendor/symfony/symfony/src/Symfony/Component/Filesystem/Filesystem.php:174: { | |
: , | |
: if (!@rmdir($file) && file_exists($file)) {, | |
: $error = error_get_last(); |
NewerOlder