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
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> | |
<script src="https://apis.google.com/js/client:plusone.js" type="text/javascript"></script> | |
<script src="social_count.js"></script> | |
<h1>Social count</h1> | |
<script type="text/javascript"> | |
$(document).ready(function($){ | |
var url = window.location.href; | |
var iddivTwit="#twitter<?php echo $randid; ?>"; |
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
// dependencies | |
var async = require('async'); | |
var path = require('path'); | |
var AWS = require('aws-sdk'); | |
var gm = require('gm').subClass({ | |
imageMagick: true | |
}); | |
var util = require('util'); | |
// get reference to S3 client | |
var s3 = new AWS.S3(); |
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 | |
$target="http://www.wordiz.it"; | |
$data="f.req=%5B%22".$target."%22%2Cnull%5D&"; | |
$url = "https://plus.google.com/u/0/ripple/update"; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data); |
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
header.head { | |
height:200px; | |
background:url('../img/swtln.png?1436228541') no-repeat center; | |
margin-right: 1100px; | |
/*float: left;*/ | |
} | |
.blue { | |
color:#FFF | |
} |
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
# File is saved under /etc/init/start_containers.conf | |
# After file is modified, update config with : $ initctl reload-configuration | |
description "Start containers (see http://askubuntu.com/a/22105 and http://askubuntu.com/questions/612928/how-to-run-docker-compose-at-bootup)" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
# if you want it to automatically restart if it crashes, leave the next line in | |
# respawn # might cause over charge |
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 | |
find . -type f -exec chmod 644 {} \; # fichiers en général | |
find . -name ‘*.php’ -exec chmod 600 {} \; # tous les fichiers qui portent l’extension php | |
find . -type d -exec chmod 751 {} \; # tous les répertoires | |
chmod 755 visible # un répertoire visible de l’extérieur qui s’appelle ‘visible’ |
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
<!-- Load the Content Experiment JavaScript API client for the experiment --> | |
<!-- Place this just after your <head> --> | |
<script src="//www.google-analytics.com/cx/api.js?experiment=YOUR_EXPERIMENT_ID"></script> |
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
<!-- Load the JQuery library --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> | |
<script> | |
// Needs to be loaded after jquery | |
var chosenVariation = cxApi.chooseVariation(); | |
console.log("Experiments is ON. Visitor will see variant : ", chosenVariation); | |
// Define JavaScript for each page variation of this experiment. | |
var pageVariations = [ | |
function() { // Original: We don't change the page at all |
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 | |
import csv | |
writer = csv.writer(open("email.csv", 'w')) | |
qs = User.objects.all().values("email") | |
for obj in qs: | |
row = [] | |
if type(obj['email']) == unicode: | |
email = obj['email'].encode("utf-8") | |
row.append(email) | |
writer.writerow(row) |
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() { | |
var url = new URL({{Page URL}}); | |
var final_price = url.searchParams.get("final_price"); | |
return (final_price/100); | |
} |
OlderNewer