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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| readonly flake_name='u3macbook' | |
| readonly real_script_dir=$( dirname $(readlink $HOME/.config/nixpkgs/flake.nix) ) | |
| header() { | |
| local -r msg="${1:-}" |
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
| #!/usr/bin/env python3.7 | |
| import iterm2 | |
| async def get_last_line(session): | |
| async with session.get_screen_streamer() as streamer: | |
| ready = False | |
| while ready != True: | |
| content = await streamer.async_get() | |
| for i in range(content.number_of_lines): | |
| line = content.line(content.number_of_lines-i-1) |
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
| public class App : Application | |
| { | |
| public App() | |
| { | |
| StyleUtils.ConfigureResources(Resources, new ThemeLight()); | |
| ... | |
| } | |
| } |
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
| #!/usr/bin/env pwsh | |
| param( | |
| [Parameter(Mandatory = $true)][string] $AppName, | |
| [Parameter(Mandatory = $true)][int] $BuildNumber | |
| ) | |
| $ErrorActionPreference = 'Stop' | |
| $outDir = Join-Path '.' 'artifacts' 'ios' |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <TargetFrameworks>net6.0-ios</TargetFrameworks> | |
| <IsPackable>false</IsPackable> | |
| <IsBindingProject>true</IsBindingProject> | |
| <NoBindingEmbedding>true</NoBindingEmbedding> | |
| <BindingPlatform>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</BindingPlatform> | |
| </PropertyGroup> | |
| <ItemGroup Condition="'$(BindingPlatform)' == 'ios'"> |
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
| print("attachment [\(NSAttributedString.Key.attachment.rawValue)]") | |
| print("backgroundColor [\(NSAttributedString.Key.backgroundColor.rawValue)]") | |
| print("baselineOffset [\(NSAttributedString.Key.baselineOffset.rawValue)]") | |
| // print("cursor [\(NSAttributedString.Key.cursor.rawValue)]") // mac | |
| print("expansion [\(NSAttributedString.Key.expansion.rawValue)]") | |
| print("font [\(NSAttributedString.Key.font.rawValue)]") | |
| print("foregroundColor [\(NSAttributedString.Key.foregroundColor.rawValue)]") | |
| // print("glyphInfo [\(NSAttributedString.Key.glyphInfo.rawValue)]") // mac | |
| print("kern [\(NSAttributedString.Key.kern.rawValue)]") | |
| print("ligature [\(NSAttributedString.Key.ligature.rawValue)]") |
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
| package com.example.myapplication | |
| import android.os.Bundle | |
| import android.util.Log | |
| import android.view.Menu | |
| import com.google.android.material.bottomnavigation.BottomNavigationView | |
| import androidx.appcompat.app.AppCompatActivity | |
| import androidx.fragment.app.Fragment | |
| import androidx.fragment.app.FragmentContainerView | |
| import androidx.navigation.NavGraph |
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
| param( | |
| [switch] $Rollback | |
| ) | |
| ################################################################################ | |
| # Config | |
| ################################################################################ | |
| $WebsiteName = "FIXME: IIS WEBSITE NAME" | |
| $WaitForWebsiteTimeoutSeconds = 60 |
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
| function ns() { | |
| local pkgs="" | |
| for arg in "$@"; do | |
| local pkgs="nixpkgs#${arg} ${pkgs}" | |
| done | |
| echo "nix shell ${pkgs}" | |
| nix shell $pkgs | |
| } |
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
| { config, lib, pkgs, options, ... }: | |
| let | |
| carthage = pkgs.stdenv.mkDerivation rec { | |
| pname = "carthage"; | |
| version = "0.38.0"; | |
| src = pkgs.fetchurl { | |
| url = "https://github.com/Carthage/Carthage/releases/download/${version}/Carthage.pkg"; | |
| sha256 = "1d5s160vbd3c3fvx93zq7aw0qgp1l95ri3ayskjg7cc8c2qk1s0f"; | |
| }; |