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" | |
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" | |
> | |
<xsl:output method="xml" indent="yes"/> | |
<xsl:template match="/root" > | |
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns |
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
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace PLAB_01 |
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
johny@johny-X51RL:~$ mongo | |
"MongoDB shell version: 1.6.3" | |
"Thu Sep 22 21:28:06 *** warning: spider monkey build without utf8 support. consider rebuilding with utf8 support" | |
"connecting to: test" | |
var student = {name:'Alex',surname:'Astrouski', age:'20', courses:['math','databases','physics']} | |
var student2 = {name:'Some',surname:'Body', age:'200', courses:['math','databases','physics']} | |
var student3 = {name:'Hare',surname:'Krishna', age:'600', courses:['math','databases','physics']} | |
"Создал пару студентов (документов), теперь записываю в коллекцию:" | |
db.students.save(student) | |
db.students.save(student2) |
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
object FizzBuzz extends App { | |
def fizzbuzz(line: String) = { | |
val Array(a,b,n) = line.split(" ").map(_.toInt) | |
(1 to n).map(x => | |
(x%a,x%b) match { | |
case (0,0) => "FB" | |
case (0,_) => "F" | |
case (_,0) => "B" | |
case _ => x | |
} |
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 <iostream> | |
void printSome(int argc, int xs[]); | |
int intTest(int arg); |
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
package com.github.omnomnom | |
import scala.collection.mutable._ | |
// 28 nov 2011 | |
// Golikov Konstantine | |
// [email protected] | |
abstract class Node extends Ordered[Node] { | |
val w: Double |
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 <stdio.h> | |
#include <math.h> | |
// Условия из задания. Не могут изменяться в ходе работы программы | |
// Значения определенные здесь видны во всей программе | |
const int N = 12, | |
a = 10, | |
xs = 2, | |
xe = 6; |
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 <Servo.h> // библиотека по работе с сервоприводом | |
Servo myservo; | |
const int ledPin = 13; | |
const int IRPIN = 0; | |
int pos = 0; | |
void setup() { | |
Serial.begin(9600); // Открываем соединение (в скобках -- скорость в бодах) |
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
using System; | |
namespace Lab05 | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
MultiplyMatrix.InitMatrix(); |
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
using System; | |
using System.Collections.Concurrent; | |
using System.Threading; | |
namespace ReadWriteBuffer | |
{ | |
public static class ThreadExtension | |
{ | |
private const LocalDataStoreSlot PRIORITY_SLOT = Thread.GetNamedDataSlot("prioritySlot"); | |
public static ThreadPriority GetPriority(this Thread t) |
OlderNewer