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
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist | |
sudo launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist |
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
//Assuming Accounts = Name of the Entity to instance | |
BlipAppDelegate *_appDelegate = (BlipAppDelegate *)[[UIApplication sharedApplication] delegate]; | |
NSManagedObjectContext *MOC = [_appDelegate managedObjectContext]; | |
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Accounts" inManagedObjectContext:MOC]; | |
Accounts *account = (Accounts *)[[NSManagedObject alloc] initWithEntity:entity insertIntoManagedObjectContext:nil]; | |
//Insert data to account |
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
import numpy as np | |
def gradient_descent_runner(points, starting_m, starting_b, learning_rate, num_iterations): | |
m = starting_m | |
b = starting_b | |
for i in range(num_iterations): | |
m, b = step_gradient(m, b, np.array(points), learning_rate) | |
return m, b |
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 | |
############## | |
# The zip file provided by Postman of a full export will include two folders, environment and collections. | |
# Within these folder there will be many files with guids as filenames. Making it non-user friendly | |
# to know the file of a specific environment/collection. | |
# | |
# The simple script below will rename the files by extracting the name within the contents of the file. | |
############## |
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
import base64 | |
import json | |
import xml.etree.ElementTree as ET | |
import os | |
import cairosvg | |
process_files = [ | |
'Library-1.drawio', | |
'Library-2.drawio' |