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
Когато напишете нещо подобно : | |
.class_name.class_name .class_name > ul > li:first-child + li + li + li + li + li + li + li + li + li + li + li + li { } | |
.class_name.class_name .class_name > ul:first-child > li:first-child + li + li + li + li + li + li + li + li + li + li + li + 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
/* -*- Mode: js; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / | |
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ | |
'use strict'; | |
var ValueSelector = { | |
_containers: {}, | |
_popups: {}, | |
_buttons: {}, |
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 localstorageImages(ids, version) { | |
var elements = ids, | |
path = '/assets/img/home-page/', | |
isIE = navigator.userAgent.match(/MSIE\s(?!9.0)/), | |
image, | |
storageFiles, | |
storageFilesVersion, | |
version; |
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
// Bug fixes for current versions. | |
// | |
// This server will start a bash shell and expose it | |
// over socket.io to a browser. See ./term.html for the | |
// client side. | |
// | |
// You should probably: | |
// | |
// npm install socket.io |
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"?> | |
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="2.4"> | |
<COLR> | |
<version value="0"/> | |
<ColorGlyph name="uniE600"> | |
<layer colorID="0" name="uniE600" /> | |
</ColorGlyph> | |
<ColorGlyph name="uniE601"> | |
<layer colorID="1" name="uniE601" /> | |
</ColorGlyph> |
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
#The reason is old rubygems. | |
#So we need to remove ssl source to be able to update gem --system which includes rubygems and so on. | |
#After this we can feel free to get back to ssl source. | |
#to temporarily remove secure connection | |
gem sources -r https://rubygems.org/ | |
#add insecure connection | |
gem sources -a http://rubygems.org/ |
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 app = require('express')(); | |
var http = require('http').Server(app); | |
var server_port = process.env.OPENSHIFT_NODEJS_PORT || 3000; | |
var server_ip_address = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1'; | |
var io = require('socket.io')(http); | |
app.get('/', function(req, res){ | |
res.sendFile(__dirname + '/index.html'); | |
}); |
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
//Just for test | |
var query = new Parse.Query(Parse.Installation); | |
query.equalTo('channels', 'test-channel'); | |
Parse.Cloud.define('push', function (request, response) { | |
Parse.Push.send( | |
{ | |
where: query, | |
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
Parse.Cloud.job("backupAppoinments", function(request, status) { | |
var nowTimeStamp = Date.now(); | |
var timeout = 60 * 60 * 1000; // one hour (run this cloud job each hour) | |
var query = new Parse.Query("Appoinments"); | |
// set a limit | |
query.limit(100); | |
query.equalTo("read", true); | |
query.lessThan("readTime", nowTimeStamp - timeout); |
OlderNewer