pip --version
devrait renvoyer une erreur comme commande introuvable
- Enregistrer en local le fichier cible (au hasard c:) https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py
- Exécuter la commande
python c:\get-pip.py
package controllers | |
import akka.util.Timeout | |
import org.scalatest.FunSuite | |
import org.scalatest.matchers.ShouldMatchers | |
import play.api.libs.json.JsValue | |
import play.api.libs.ws.WS | |
import scala.concurrent.duration._ | |
import scala.concurrent.{Await, Future} |
use OneCalendar | |
db.events.save({ | |
"title" : "my great record", | |
"begin" : NumberLong(new String(new Date(new Date().getTime()+1000*60*60*24).getTime())), | |
"end" : NumberLong(new String(new Date(new Date().getTime()+3000*60*60*24).getTime())), | |
"location" : "anywhere i want", | |
"description" : "", | |
"tags" : [ | |
"TAG1" | |
] |
function save(o) { | |
if (!db.icalstreams.count({defaultTag:o.defaultTag}) ) { | |
db.icalstreams.save(o); | |
} else { | |
print(o.defaultTag,"already exist"); | |
} | |
} | |
if (db.getName() === "OneCalendar") { | |
save({ "url" : "http://lacantine.org/events/feed.ics", "defaultTag" : "lacantine" }); | |
save({ "url" : "http://www.parinux.org/calendar/ical", "defaultTag" : "parisnux" }); |
<html> | |
</html> |
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
pip --version
devrait renvoyer une erreur comme commande introuvable
python c:\get-pip.py
#!/bin/bash | |
ip=$(ifconfig | grep "inet addr" | grep -v "127") | |
/usr/bin/python << EOF 2>&1 >> /tmp/mailip.log | |
import smtplib | |
from email.mime.text import MIMEText | |
msg = MIMEText(" ") | |
msg['Subject'] = 'Rasp IP %s' % "${ip}" |
function clickThis(anchorObj) { | |
var evt = document.createEvent("MouseEvents"); | |
evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); | |
var allowDefault = anchorObj.dispatchEvent(evt); | |
} | |
var nodeL = document.querySelectorAll(".highcharts-legend-item"); | |
for(var i = 0;i<nodeL.length;i++) { | |
clickThis(nodeL.item(i)); | |
} |
package hellofest; | |
import static hellofest.DateEquals.areEquals; | |
import static java.util.Arrays.asList; | |
import static org.fest.assertions.Assertions.assertThat; | |
import java.util.Date; | |
import java.util.List; | |
import org.junit.Test; | |
public class AssertMeThis { |
# @see https://web.archive.org/web/20170407025318/https://people-mozilla.org/~dietrich/places-erd.png | |
select * from moz_bookmarks | |
where id in ( | |
select r.parent from moz_keywords k, moz_places p, moz_bookmarks b, moz_bookmarks r | |
where k.place_id = p.id | |
and b.fk = p.id | |
and r.id = b.parent) |