This file contains hidden or 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.Linq; | |
| using System.Text; | |
| namespace Phantoms | |
| { | |
| interface Validated { } | |
| interface Unvalidated { } |
This file contains hidden or 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
| {-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, UndecidableInstances #-} | |
| module Prolog (Petja, Vasja, Serg, Father) where | |
| data Petja = Petja | |
| data Vasja = Vasja | |
| data Serg = Serg | |
| class Father a b where | |
| isFather :: a -> b -> () | |
| isFather x y = () |
This file contains hidden or 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 CheckBoxList | |
| protected override Control FindControl(string id, int pathOffset) | |
| { | |
| return this; | |
| } |
This file contains hidden or 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
| changeBindings.Add(new ChangeBinding(RootSite) | |
| .Add(new ActivateFeature(true, HeMeSiteElementsFeatureId)) | |
| .Add(new ActivateFeature(false, HeMeSiteElementsPublishingImagesFeatureId)) | |
| .Add(new ActivateFeature(false, HeMeSiteElementsTopNavFeatureId)) | |
| ); | |
| //these changed will be applied for all sites | |
| changeBindings.Add(new WildcardChanges() | |
| .Add(new ChangePageLayoutFromOneToAnother("smBlankIntroPage.aspx", "hemeBlankIntroPage.aspx", true)) |
This file contains hidden or 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
| #pip install BeautifulSoup | |
| #pip install requests | |
| from BeautifulSoup import BeautifulSoup | |
| import requests | |
| url = 'http://yandex.ru/yandsearch?text=%(q)s' | |
| payload = {'q': 'Python',} | |
| r = requests.get(url % payload) | |
| soup = BeautifulSoup(r.text) | |
| titles = [item.text for item in soup.findAll('div', attrs={'class': 'b-serp-item__text'})] | |
| for t in titles: |
This file contains hidden or 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.Configuration; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Runtime.Serialization; | |
| using System.Runtime.Serialization.Json; | |
| using System.Text; | |
| using System.Web; |
This file contains hidden or 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.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace OopGeometry | |
| { | |
| class Program | |
| { |
This file contains hidden or 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.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Defer | |
| { | |
This file contains hidden or 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.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Defer | |
| { | |
| public abstract class Projection<TV,TK> | |
| { |
This file contains hidden or 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 Defer | |
| { | |
| public class Slice | |
| { | |
| int i1, i2, step, len, cycles; | |
| public Slice(int length, int ini1 = 0, int ini2 = -1, int inStep = 1, int inCycles = 1) | |
| { | |
| System.Diagnostics.Debug.Assert(inStep > 0); | |
| System.Diagnostics.Debug.Assert(inCycles > 0); |