This file contains hidden or 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 rover = { | |
directions : {"N" , "S" , "E" , "W"}; | |
default : "N"; | |
function turnLeft(rover){ | |
console.log("turnLeft was called"); | |
} | |
function turnRight(rover){ | |
console.log("turnRight was called") |
This file contains hidden or 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
/* | |
* For more information how you can configurate this file | |
* See https://github.com/MichMich/MagicMirror#configuration | |
* | |
*/ | |
var config = { | |
port: 8080, | |
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses | |
// or add a specific IPv4 of 192.168.1.5 : |
This file contains hidden or 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
<div id="mapdiv"></div> | |
<style> | |
#mapdiv { | |
width: 1000px; | |
height: 1000px; | |
} | |
</style> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.11/OpenLayers.js"></script> | |
<script> | |
map = new OpenLayers.Map("mapdiv"); |
This file contains hidden or 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
// ==UserScript== | |
// @name private-facebook | |
// @namespace lexoyo.user.scripts | |
// @description cleanup facebook as you go | |
// @version 1.0.0 | |
// @grant none | |
// @include https://www.facebook.com* | |
// @run-at document-end | |
// ==/UserScript== |
This file contains hidden or 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
// ==UserScript== | |
// @name reload X times | |
// @namespace secretmedia | |
// @include * | |
// @version 0.3 | |
// @description reload X times | |
// @author me lexoyo | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
// ==UserScript== | |
// @name struggle.js | |
// @namespace lexoyo | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
function sleep(milliseconds) { | |
var start = new Date().getTime(); | |
for (var i = 0; i < 1e7; i++) { |
This file contains hidden or 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
This file contains hidden or 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 insultes = [ | |
'méchant', | |
'coco', | |
'bachibouzouk', | |
'débile' | |
]; | |
This file contains hidden or 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
// on http://www.viadeo.com/network/requests/ | |
// accepts or requests 100 people | |
var idx = 0; function dome(){ $('.vicon-add').click(); window.scrollBy(0, 150); if(idx++<100) { setTimeout(dome, 500) } }; dome(); |
This file contains hidden or 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
silex.model.Widget.register(function(model, view, controller) { | |
return { | |
title: 'Align tool', | |
description: 'This widget displays buttons to align selected elements.', | |
selection: [], |