Skip to content

Instantly share code, notes, and snippets.

View yanisurbis's full-sized avatar
🍞
Converting energy to experience

Yanis Urbis yanisurbis

🍞
Converting energy to experience
View GitHub Profile
{
let count = 0;
(function foo(count) {
if (count > 5)
return;
console.log(count);
foo(count + 1);
})(count);
}
function foo() {
console.log( this.a );
}
var obj = {
a: 2,
foo: foo
};
var bar = obj.foo;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
//B b = new B();
//b.print();
//b.hi();
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
B b = new C();
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class My
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class My
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class My
class My
{
public static void Main()
{
//Найди сумму всех чётных чисел (одним запросом)
ArrayList a = new ArrayList() { "a", 1, -4, DateTime.Now, 11, new { yanis = "urbis" }, 2 };
ArrayList b = new ArrayList() { true, Math.PI, 55, 48, 31.8e204, "pride", -4, 0 };
}
}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Data;
namespace ConsoleApplication2
{
struct MyStruct
{
USE [master]
RESTORE DATABASE AdventureWorks2014
FROM disk= 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\Backup\AdventureWorks2014.bak'
WITH MOVE 'AdventureWorks2014_data'
TO 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\AdventureWorks2014.mdf',