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
import {Page, HTTPResponse} from 'puppeteer' | |
import log from "../services/log"; | |
/** | |
* This class contains the logic to solve protections provided by CloudFlare | |
**/ | |
const BAN_SELECTORS: string[] = []; | |
const CHALLENGE_SELECTORS: string[] = [ |
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
namespace x.Main.Settings | |
{ | |
/// <summary> | |
/// Interaction logic for SettingsFlyout.xaml | |
/// </summary> | |
public partial class SettingsFlyout : UserControl | |
{ | |
ISettingsService m_settingsService; | |
public SettingsFlyout() |
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.Threading; | |
int[] m_forks = new[] | |
{ | |
1, | |
1, | |
1, | |
}; | |
void TakeFork(int fid, int fid2) |
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.Threading; | |
int[] m_forks = new[] | |
{ | |
1, | |
1, | |
1, | |
}; | |
void TakeFork(int fid) |
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.Threading; | |
Random rand = new Random(); | |
const int BUFFER_SIZE = 5; | |
int[] m_buffer = new int[BUFFER_SIZE]; | |
int m_count = 0; | |
Semaphore m_full = new Semaphore(0, BUFFER_SIZE); | |
Semaphore m_empty = new Semaphore(BUFFER_SIZE, BUFFER_SIZE); |
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.Threading; | |
Random rand = new Random(); | |
const int BUFFER_SIZE = 5; | |
int[] m_buffer = new int[BUFFER_SIZE]; | |
int m_count = 0; | |
void Produce() |
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.Threading; | |
Random rand = new Random(); | |
const int BUFFER_SIZE = 5; | |
int[] m_buffer = new int[BUFFER_SIZE]; | |
int m_count = 0; | |
void Produce() |
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
<Window x:Class="wpf_test.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:wpf_test" | |
mc:Ignorable="d" | |
Title="MainWindow" Height="450" Width="800"> | |
<StackPanel> | |
<UniformGrid Columns="3"> |
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
<Window x:Class="wpf_test.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:wpf_test" | |
mc:Ignorable="d" | |
Title="MainWindow" Height="450" Width="800"> | |
<WrapPanel> | |
<Grid |
NewerOlder