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.Drawing; | |
using System.Linq; | |
using System.Windows.Forms; | |
using Minesweeper.Properties; | |
namespace Minesweeper | |
{ | |
public partial class MinesweeperForm : Form |
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
[Ll]ibrary/ | |
[Tt]emp/ | |
[Oo]bj/ | |
[Bb]uild/ | |
[Bb]uilds/ | |
[Ll]ogs/ | |
# Uncomment this line if you wish to ignore the asset store tools plugin | |
# [Aa]ssets/AssetStoreTools* |
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
input int SL = 150; //15 pip | |
void OnTradeTransaction(const MqlTradeTransaction &txs, const MqlTradeRequest &req, const MqlTradeResult &res) | |
{ | |
MqlTradeRequest rq={0}; | |
MqlTradeResult tr; | |
if (HistoryDealGetInteger(txs.deal, DEAL_ENTRY) == DEAL_ENTRY_IN) | |
{ | |
PositionSelect(txs.symbol); | |
rq.position = txs.order; |
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
for iommu_group in $(find /sys/kernel/iommu_groups/ -maxdepth 1 -mindepth 1 -type d); do | |
echo "IOMMU group $(basename "$iommu_group")"; | |
for device in $(ls -1 "$iommu_group"/devices/); do echo -n $'\t'; lspci -nns "$device"; | |
done; | |
done |
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
docker-machine ssh dev1 | |
echo "ifconfig eth1 192.168.99.100 netmask 255.255.255.0 broadcast 192.168.99.255 up" > /var/lib/boot2docker/bootsync.sh | |
echo -e 'kill `more /var/run/udhcpc.eth1.pid`\nifconfig eth1 192.168.99.100 netmask 255.255.255.0 broadcast 192.168.99.255 up' > /var/lib/boot2docker/bootsync.sh | |
docker-machine regenerate-certs dev | |
https://github.com/docker/machine/issues/1709#issuecomment-169293713 |
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
const express = require('express') | |
const app = express() | |
const port = 8080 | |
app.get('/', (req, res) => { | |
js = {} | |
js.time = new Date(); | |
js.remoteAddress = req.connection.remoteAddress; | |
js.ip = req.ip; | |
res.json(js); |
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
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.network "public_network" | |
config.vm.synced_folder "d:/code", "/code" | |
end |
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> | |
using namespace std; | |
class A { | |
public: | |
A() { cout << "A yapici\n"; } | |
A(const A &x) { cout << "A Kopya\n"; } | |
~A() { cout << "A Yikici\n"; } | |
}; |
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> | |
using namespace std; | |
class TemelSinif{ | |
public: | |
int fonk1() { return 2; } | |
virtual int fonk2() { return 4; } | |
}; |