https://glot.space/blog/test123 2023-07-10T17:29:29.350Z 0.1 https://glot.space/blog/How-to-use-the-verb-'pegar'-in-Brazilian-Portuguese 2023-07-19T18:00:45.758Z 0.1 https://glot.space/blog/hello-i-am-an-article 2023-07-10T17:35:05.609Z 0.1 https://glot.space/blog/Overview-of-Cases 2023-07-10T17:45:50.923Z 0.1 https://glot.space/blog/Overview-of-Grammatical-Cases-in-Polish 2023-07-10T17:46:28.820Z 0.1 https://glot.space/blog/Nominative-Case-in-Polish 2023-07-10T18:06:30.953Z 0.1 https://glot.space/blog/Genitive-Case-in-Polish 2023-07-10T18:16:19.926Z 0.1 https://glot.space/blog/Dative-Case-in-Polish 2023-07-11T13:03:33.548Z 0.1 https://glot.space/blog/Accusative-Case-in-Polish 2023-07-11T13:17:45.043Z 0.1 https://glot.space/blog/Indicative-Tenses-in-Brazilian-Portuguese-Overview 2023-07-12T18:31:23.942Z 0.1 https://glot.space/blog/Brazilian-Portuguese-Simple-Past-Overview 2023-07-16T17:15:42.410Z 0.1 https://glot.space/blog/Brazilian-Portuguese-Simple-Future-Tutorial 2023-07-16T17:21:53.467Z 0.1 https://glot.
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
https://glot.space |
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
#Make a comment just like in Python | |
#to run > julia testing.jl | |
#Simple arrays | |
println("Hello World") | |
a = [1, 2, 3, 4, 5] | |
println(a) | |
b = [1 2 3; 4 5 6; 7 8 9] |
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 UIKit | |
import CoreData | |
public class Mappable : NSManagedObject { | |
var className: String { | |
return String(describing: type(of: self)) | |
} |
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
override function viewDidLoad() { | |
... | |
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow), name: NSNotification.Name.UIKeyboardWillShow, object: nil) | |
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillHide), name: NSNotification.Name.UIKeyboardWillHide, object: nil) | |
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChangeFrame), name: NSNotification.Name.UIKeyboardWillChangeFrame, object: nil) | |
... | |
} |
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) docker pull mdillon/postgis:latest | |
Then just set your env vars: | |
export POSTGRES_IMAGE="mdillon/postgis" | |
export POSTGRES_IMAGE_VERSION="latest" | |
Then you just use the plugin to create a new database. |
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
var blockOperations: [BlockOperation] = [] | |
func controller(_ controller: NSFetchedResultsController<NSFetchRequestResult>, didChange anObject: Any, at indexPath: IndexPath?, for type: NSFetchedResultsChangeType, newIndexPath: IndexPath?) { | |
if type == NSFetchedResultsChangeType.insert { | |
print("Insert Object: \(newIndexPath)") | |
blockOperations.append( | |
BlockOperation(block: { [weak self] in |
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
function pr2width(nom, denom){ | |
const window = Dimensions.get('window') | |
const fraction = window.width / denom | |
return fraction*nom | |
} |
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
self.navigationItem.leftBarButtonItem = | |
UIBarButtonItem(image:UIImage(named:"chevron_left"), style:.Plain, target:self, action:"backButtonPressed:"); | |
self.navigationController!.interactivePopGestureRecognizer!.delegate = self; |
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
func pauseAnimation(){ | |
var pausedTime = layer.convertTime(CACurrentMediaTime(), fromLayer: nil) | |
layer.speed = 0.0 | |
layer.timeOffset = pausedTime | |
} | |
func resumeAnimation(){ | |
var pausedTime = layer.timeOffset | |
layer.speed = 1.0 | |
layer.timeOffset = 0.0 |
NewerOlder