Skip to content

Instantly share code, notes, and snippets.

View yojimbocorp's full-sized avatar

Yojimbo Corp yojimbocorp

View GitHub Profile
@yojimbocorp
yojimbocorp / azure_sql_data_sync_clean.sql
Last active June 9, 2021 04:05
Azure SQL Data Sync Cleanup
-- Find all SQL Data Sync triggers
select name from sys.triggers where name like '%_dss_%_trigger';
-- Find all SQL Data Sync tables
select table_schema + '.' + table_name from information_schema.tables where table_schema='DataSync'
-- Find all SQL Data Sync procedures
select 'DataSync.' + name from sys.procedures where schema_id = SCHEMA_ID('DataSync')
-- Find all SQL Data Sync types
select name from sys.types where schema_id = SCHEMA_ID('DataSync')
@yojimbocorp
yojimbocorp / tu-telemundo-code-sample
Created June 19, 2014 23:01
Tu Telemundo Code Snippet
- (IBAction)toggleCameras:(id)sender {
if (self.toggleCameraButton.enabled == NO) {
DLog(@"Don't allow toggle while button not enabled");
return;
}
if (self.isRecording) {
DLog(@"Don't allow toggle while recording");
return;
}
NSError *error;