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
PROPERTIES = {year=0, month=0, day=0, hour=0, min=0, sec=0, fintext=""} | |
function Initialize() | |
RELEASEDATE = {} | |
setmetatable(RELEASEDATE, getmetatable(PROPERTIES)) | |
for k,v in pairs(PROPERTIES) do | |
if k ~= fintext then | |
RELEASEDATE[k] = v |
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
(ns your-application | |
(:use clojure.math.numeric-tower)) | |
; | |
(defn rndgen_recur [l c n] | |
(if (= c n) | |
l | |
(recur (conj l (rand 10)) (inc c) n))) | |
(defn rndgen [n] | |
(rndgen_recur () 0 n)) |
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
(ns your-application | |
(:use clojure.math.numeric-tower)) | |
; | |
(defn rndgen_recur [l c n] | |
(if (= c n) | |
l | |
(recur (conj l (rand 10)) (inc c) n))) | |
(defn rndgen [n] | |
(rndgen_recur () 0 n)) |
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
(ns your-application | |
(:use clojure.math.numeric-tower)) | |
; | |
(defn rndgen_recur [l c n] | |
(if (= c n) | |
l | |
(recur (conj l (rand 10)) (inc c) n))) | |
(defn rndgen [n] | |
(rndgen_recur () 0 n)) |
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
(ns your-application | |
(:use clojure.math.numeric-tower)) | |
(import java.util.Vector) | |
;region генератор списка случайных чисел с хвостовой рекурсией | |
(defn rndgen_recur [l c n] | |
(if (= c n) | |
l | |
(recur (conj l (rand 10)) (inc c) n))) |
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
#include <QTextStream> | |
#include <QDateTime> | |
QTextStream cout(stdout); | |
class TimeSpan { | |
qint64 _msecs; | |
static const qint64 c_second = 1000; | |
static const qint64 c_minute = 60; |
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
(dialog chase_main "The chase" -1 -1 600 400 | |
(pushButton pbStartGame "Start game" 0 0 450 20) | |
(pushButton pbIntro "Intro" 0 20 450 20) | |
(tabs 0 50 450 330 | |
(tab tabPlayers "Players" | |
(gridLayout | |
(1 1 (lineEdit leP1 "Pl1")) | |
(1 2 (lineEdit leP2 "Pl2")) | |
(1 3 (lineEdit leP1 "Pl3")) | |
(1 4 (lineEdit leP2 "Pl4")) |
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
(fibo 10) | |
10 | |
(if (< N 2) 1 (+ (fibo (- N 1)) (fibo (- N 2)))) | |
(< N 2) | |
N | |
2 | |
QVariant(QVariantList, (QVariant(int, 10) , QVariant(int, 2) ) ) | |
(+ (fibo (- N 1)) (fibo (- N 2))) | |
(fibo (- N 1)) | |
(- N 1) |
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
<div class="accordion-group"> | |
<div class="accordion-heading"> | |
<a class="accordion-toggle" data-toggle="collapse" href="#{ __ ССЫЛКО НА ИД СОДЕРЖИМОГО __ }"> | |
{ __ МЕСТО ДЛЯ ЗАГОЛОВКА __ } | |
</a> | |
</div> | |
<div id="{ __ ИД СОДЕРЖИМОГО __ }" class="accordion-body collapse in"> | |
<div class="accordion-inner"> | |
{ __ МЕСТО ДЛЯ СОДЕРЖИМОГО__ } | |
</div> |
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 jq; | |
if (!window.jQuery) { | |
jq = document.createElement('script'); | |
jq.type = 'text/javascript'; | |
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'; | |
return document.getElementsByTagName('head')[0].appendChild(jq); | |
} | |
})() | |
setTimeout(function() { |
OlderNewer