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 port, server, service, | |
system = require('system'); | |
if (system.args.length !== 2) { | |
console.log('Usage: simpleserver.js <portnumber>'); | |
phantom.exit(1); | |
} else { | |
port = system.args[1]; | |
server = require('webserver').create(); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:import href="page-title.xsl"/> | |
<xsl:import href="navigation.xsl"/> | |
<xsl:import href="date-time.xsl"/> | |
<xsl:output method="xml" encoding="utf-8" indent="yes" omit-xml-declaration="yes"/> | |
<xsl:strip-space elements="*"/> |
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
<ol> | |
<li class="rosu-cafeniu">Rosu cafeniu</li> | |
<li class="rosu-mahon">Rosu mahon</li> | |
<li class="rosu-mahon">Rosu mahon</li> | |
<li class="rosu-maroniu">Rosu maroniu</li> | |
<li class="rosu-granat">Rosu granat</li> | |
<li class="rosu-rubiniu">Rosu rubiniu</li> | |
<li class="rosu-purpuriu">Rosu purpuriu</li> | |
<li class="portocaliu">Portocaliu</li> | |
<li class="orange-cupru">Orange cupru</li> |
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 | |
require_once TOOLKIT . '/class.datasource.php'; | |
class datasourcerecent_comments extends SectionDatasource | |
{ | |
public $dsParamROOTELEMENT = 'recent-comments'; | |
public $dsParamORDER = 'desc'; | |
public $dsParamPAGINATERESULTS = 'no'; | |
public $dsParamLIMIT = '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
Open a root terminal in raspberry Pi. Now you need to edit your script that's starting X. In the default build with lightdm. | |
Open "lightdm.conf" file located in, | |
/etc/lightdm/lightdm.conf | |
Add below line in to SeatDefault section. | |
[SeatDefaults] |
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
<ol class="paleta"> | |
<li class="verde-cafeniu"> | |
<h1>Heading</h1> | |
<p>Body</p> | |
<span>Fade</span> | |
</li> | |
<li class="anghinare"> | |
<h1>Heading</h1> | |
<p>Body</p> | |
<span>Fade</span> |
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
.overlay { | |
position:absolute; | |
width:100%; | |
height:100%; | |
background-color:transparent; | |
z-index:999; | |
} |
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 dayInput = $('input[name=day]'); | |
var monthInput = $('input[name=month]'); | |
var yearInput = $('input[name=year]'); | |
$(document).on('keyup', dayInput, monthInput, yearInput, function(e){ | |
if (dayInput.val().length == 2){ | |
monthInput.focus(); | |
} | |
if (monthInput.val().length == 2){ | |
yearInput.focus(); |
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
$('.tags-languages').selectize({ | |
create: true, | |
valueField: 'value', | |
labelField: 'value', | |
searchField: 'value', | |
optgroupField: 'optgroup', | |
preload: true, | |
onOptionAdd:function (value, data, e) { | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style> | |
div { | |
display:table-cell; | |
vertical-align: middle; | |
position:relative; |
OlderNewer