Skip to content

Instantly share code, notes, and snippets.

View attilah's full-sized avatar
🏠
Working from home

Attila Hajdrik attilah

🏠
Working from home
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@attilah
attilah / 3-page.html
Created May 5, 2025 15:56
3-page letter
<html>
<head>
<meta charset="UTF-8" />
<title>3 Page Test Letter</title>
<style>
@page {
size: Letter;
margin: 0;
}
#!/bin/bash
# Bootstraps a Mac for github.com/attilah/dotfiles, up to `chezmoi init`.
#
# Published as https://gist.github.com/attilah/a8a40e1b0fab67388d24952231cbd142
# because the dotfiles repo is private. Edit this copy, then republish (see README).
#
# Usage: bootstrap-machine.sh [studio|airbender|ocos] (asks when omitted)
#
# The repo is cloned over SSH, so this sets up SSH access to GitHub first:
# - machines with 1Password use the 1Password SSH agent (the attilah account key)
<html>
<head>
<meta charset="UTF-8" />
<title>Test Letter</title>
<style>
@page {
size: Letter;
margin: 0;
}
@attilah
attilah / 1. pattern_SecureDML.cls
Created November 24, 2020 02:30 — forked from cnaccio/1. pattern_SecureDML.cls
Salesforce Apex CRUD/Field Level Security Implementation for DML Operations (needed to pass security review) [Note that this code leverages the fflib commons library and concepts from the DMLManager library]
/**
* @author Charles Naccio
* @date 5/31/2019
*
* @group Security
* @group-content ../../ApexDocContent/Security.htm
*
* @description A unit of work DML interface for executing secure database write operations
* based on user level permissions.
*/
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>
@attilah
attilah / X.Y.Z.Sources.csproj
Last active April 8, 2025 20:22
X.Y.Z.Sources nuget package
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<IsPackable>true</IsPackable>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>contentFiles</ContentTargetFolders>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
@attilah
attilah / Directory.Build.props
Created March 18, 2017 18:25
Common props with conditions
<Project>
<PropertyGroup Condition=" '$(ABC)'=='true' ">
<OutputType>Exe</OutputType>
</PropertyGroup>
</Project>
C:\0>yarn test
yarn test v0.18.1
$ jest --config=exercises/jest.config.json
FAIL exercises\01_block-scoping.test.js
● can be used in place of `var`
ReferenceError: bandName is not defined
at Object.<anonymous>.test (exercises\01_block-scoping.test.js:5:10)
@attilah
attilah / gist:42a8f62ce28fe83bd770
Created December 13, 2015 21:41
Roslyn Orleans Codegen
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MetaOrleans
{
class Program