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.Generic; | |
using System.Net; | |
namespace ConsoleApp20 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
@echo off | |
rem script for Windows | |
git init | |
echo George Washington >> us_presidents.txt | |
echo John Adams >> us_presidents.txt | |
echo Thomas Jefferson >> us_presidents.txt | |
git add . |
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
alert() |
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
[Fact] | |
public void CheckIfAllClassesInNamespaceHavePropertiesWithVirtualKeyword() | |
{ | |
var assembly = Assembly.GetAssembly(typeof(User)); | |
var @namespace = typeof(User).Namespace; | |
var typesInNamespace = GetTypesInNamespace(assembly, @namespace); | |
foreach (var type in typesInNamespace) | |
{ | |
var properties = type.GetProperties(); |
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
[Fact] | |
public void CheckIfAllClassesInNamespaceHavePropertiesWithVirtualKeyword() | |
{ | |
var assembly = Assembly.GetAssembly(typeof(User)); | |
var @namespace = typeof(User).Namespace; | |
var typesInNamespace = GetTypesInNamespace(assembly, @namespace); | |
foreach (var type in typesInNamespace) | |
{ | |
var properties = type.GetProperties(); |
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 <stdlib.h> | |
typedef struct node_tag{ | |
int x; | |
struct node_tag* next; | |
}node; | |
node* addNode(node* list, int x){ | |
list->next = (node*) malloc(sizeof(node)); | |
list->next->next = NULL; |
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
#pragma scop | |
for ( i = 0; i < m; i++ ) | |
{ | |
for ( j = 0; j < n; j++ ) | |
{ | |
x = ( ( double ) ( j - 1 ) * x_max | |
+ ( double ) ( m - j ) * x_min ) | |
/ ( double ) ( m - 1 ); | |
y = ( ( double ) ( i - 1 ) * y_max |
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
unsigned char a,b; //char'y są 8 bitowe (patrz treść zadania) | |
unsigned short int wynik = 0; // short int 16 bitowy (patrz treść zadania) | |
a=12; //Ustawiamy dwie wartości które chcemy przemnożyć | |
b=8; | |
//Rozpoczynamy wstawkę assemblerową | |
_asm | |
{ | |
mov dx,0 //kolejne sumy a << coś będziemy przechowywać w dx (patrz wzór) | |
mov bl, b //kopiujemy do bl wartość zmiennejb | |
mov cl, 0x00 //cl będzie przechowywać wykładnik potęgi 2 (patrz wzór) |
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 o = {}; | |
var animals = ["cat", "dog", "fan"]; | |
for(var i=0; i < 3; i++){ | |
var animalName = animals[i]; | |
var funName = animalName + "Fun"; | |
o[funName] = function(){ | |
return animalName; | |
}; |
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
clc | |
clear all | |
close all | |
axis([0,800,0,600,0,300]) | |
line([55,509],[0,0],[0,0],'color','b') | |
line([509,509],[0,26],[0,0],'color','b') | |
line([509,610],[26,26],[0,0],'color','b') | |
line([610,610],[26,13],[0,0],'color','b') | |
line([610,735],[13,13],[0,0],'color','b') |
NewerOlder