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
typedef struct { | |
char fileName[1000]; | |
int array[1000]; | |
size_t used; | |
size_t size; | |
} FileFindings; | |
//jakiś tam kod... | |
int main( int argc, char ** argv ) |
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
/*eslint-disable no-var*/ | |
var path = require('path'); | |
var AureliaWebpackPlugin = require('aurelia-webpack-plugin'); | |
var ProvidePlugin = require('webpack/lib/ProvidePlugin'); | |
module.exports = { | |
resolve: { | |
extensions: ['', '.js', '.ts'] | |
}, |
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
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
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
public class OrSpecification<T> : Specification<T> | |
{ | |
private readonly Specification<T> _left; | |
private readonly Specification<T> _right; | |
public OrSpecification(Specification<T> left, Specification<T> right) | |
{ | |
_right = right; | |
_left = left; | |
} |
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 Invoicing.BehaviourTests | |
{ | |
using TestStack.BDDfy; | |
using Xunit; | |
public class UnitTest1 | |
{ | |
private decimal _result; | |
private decimal _value1; | |
private decimal _value2; |
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 Api.CompositionRoot | |
{ | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.FSharp.Control; | |
using Microsoft.FSharp.Core; | |
public static class FSharpAsyncExtension | |
{ | |
public static Task<T> StartAsDefaultTask<T>(this FSharpAsync<T> computation) => |
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 FSharpDapperWrapper | |
open System.Data | |
module DapperFSharp = | |
open System.Data.SqlClient | |
open Dapper | |
let dbQuery<'Result> (query: string) (connection: SqlConnection): Async<'Result seq> = | |
connection.QueryAsync<'Result>(query) |> Async.AwaitTask |
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
FROM mcr.microsoft.com/dotnet/sdk:5.0 | |
COPY * ./ | |
CMD ["sh", "-c", "dotnet fsi migrateDatabase.fsx \"${DB_CONNECTION}\""] |
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
module SupportOperations.TestApi | |
open System.Net.Http | |
open Microsoft.AspNetCore.Mvc.Testing | |
open Newtonsoft.Json | |
open System | |
open FsToolkit.ErrorHandling | |
open Program | |
let create () = (new WebApplicationFactory<Program>()).Server |
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
FROM neo4j:latest | |
COPY neo_import.sh neo_import.sh | |
COPY *.cypher . | |
RUN ["chmod", "+x", "neo_import.sh"] | |
ENTRYPOINT ["./neo_import.sh"] |
OlderNewer