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 ruby:3.2.2-alpine3.18 as dependencies | |
ARG RAILS_ENV=production | |
ARG RAILS_LOG_TO_STDOUT=true | |
ARG RAILS_SERVE_STATIC_FILES=true | |
ARG RAILS_MASTER_KEY='' | |
ARG OAUTH_CLIENT_ID='' | |
ARG OAUTH_CLIENT_SECRET='' | |
ARG OAUTH_SERVER='' | |
ARG PORT=3000 |
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
<template> | |
<div class="flex flex-col"> | |
<div class="flex items-center"> | |
<label class="switch"> | |
<input ref="darkModeToggle" type="checkbox" name="dark-mode" v-model="darkMode" @change="toggleMode" :disabled="useSystemSetting"> | |
<span class="slider round"></span> | |
</label> | |
<label>Dark Mode</label> | |
</div> | |
<label class="m-1"> |
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
parameters: | |
- name: "platforms" | |
type: object | |
default: {} | |
jobs: | |
- ${{ each platform in parameters.platforms }}: | |
- job: BuildIPAForTestFlight_${{platform}} | |
steps: | |
- task: DownloadSecureFile@1 |
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
# Node.js with Vue | |
# Build a Node.js project that uses Vue. | |
# Add steps that analyze code, save build artifacts, deploy, and more: | |
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | |
trigger: | |
- main | |
variables: | |
isMain: $[eq(variables['Build.SourceBranch'], 'refs/heads/main')] |
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
git = `sh /etc/profile; which git`.chomp | |
app_build = `#{git} rev-list --all | wc -l`.chomp.to_i | |
`/usr/libexec/PlistBuddy -c "Set :CFBundleVersion #{app_build}" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"` | |
puts "Updated #{ENV['TARGET_BUILD_DIR']}/#{ENV['INFOPLIST_PATH']}" |
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 | |
# Bender | |
# Written by Chad Nielsen | |
# Forget Computers, Get Creative! | |
# Version History | |
# 1.0 - Initial creation of script for use with a companion launch daemon. | |
# 1.1 - Moved binary and log locations to /usr/local/robotcloud. | |
# 1.2 - Code improvements and added compatibility with OS X 10.9 Mavericks. |
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
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSExceptionDomains</key> | |
<dict> | |
<key>yourserver.com</key> | |
<dict> | |
<!--Include to allow subdomains--> | |
<key>NSIncludesSubdomains</key> | |
<true/> | |
<!--Include to allow HTTP requests--> |
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
<link rel="icon" sizes="any" mask href="http://hypercritical.co/images/tiny-mac.svg" /> | |
<link rel="mask-icon" mask href="http://hypercritical.co/images/tiny-mac.svg" color="black" /> |
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
scope :recent, -> { order('created_at DESC') } | |
scope :owned, -> { where('user_id = ?', 'current_user.id' ) } | |
scope :current_user_only, -> { where('user_id = ?', 'current_user.id') } | |
scope :pending_items, -> { where(:quote_status => 'Pending') } | |
scope :lost_items, -> { where(:quote_status => 'Lost')} | |
scope :won_items, -> { where(:quote_status => 'Won')} |
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
{ | |
if (([[[UIDevice currentDevice] systemVersion] compare:@"8.0" options:NSNumericSearch] == NSOrderedAscending)) { | |
// use UIAlertView | |
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"Are you sure you want to do this on iOS7?" delegate:self cancelButtonTitle:@"No" otherButtonTitles:@"Yes", nil]; | |
[alert show]; | |
} | |
else { | |
// use UIAlertController | |
UIAlertController *discardController = [UIAlertController | |
alertControllerWithTitle:@"Alert Title" |
NewerOlder