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
// | |
// LocalStoreservices.swift | |
// | |
// Created by Quentin De Quelen on 03/06/15. | |
// | |
import UIKit | |
struct LocalStore { | |
//All Keys |
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
// | |
// UIColor.swift | |
// | |
// Created by Quentin De Quelen on 09/06/15. | |
// | |
import UIKit | |
extension UIColor { | |
convenience init(red: Int, green: Int, blue: Int) { |
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
// | |
// email.swift | |
// | |
// Created by Quentin De Quelen on 04/06/15. | |
// | |
class Email{ | |
var active : Bool | |
var paused : Bool | |
let label : String |
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 isValidEmail(testStr:String) -> Bool { | |
let emailRegEx = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}" | |
let emailTest = NSPredicate(format:"SELF MATCHES %@", emailRegEx) | |
return emailTest.evaluateWithObject(testStr) | |
} |
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 randomStringWithLength (len : Int) -> NSString { | |
let letters : NSString = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
var randomString : NSMutableString = NSMutableString(capacity: len) | |
for (var i=0; i < len; i++){ | |
var length = UInt32 (letters.length) | |
var rand = arc4random_uniform(length) | |
randomString.appendFormat("%C", letters.characterAtIndex(Int(rand))) |
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
/* | |
* Bundle: Helpers - Scraper | |
* Project: Readlist - Server | |
* Author: Quentin de Quelen <[email protected]> | |
* Copyright: 2015, Readlist | |
*/ | |
/* | |
* | |
*Need 'scraperjs & url' |
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
// | |
// logger.swift | |
// Crisp | |
// | |
// Created by Quentin de Quelen on 08/02/2017. | |
// Copyright © 2017 qdequele. All rights reserved. | |
// | |
import Foundation |
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
// | |
// PlistHelper.swift | |
// Crisp-ios | |
// | |
// Created by Quentin DEQUELEN on 12/3/16. | |
// Copyright © 2016 qdequele. All rights reserved. | |
// | |
import Foundation |
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/sh | |
cd $1 | |
git filter-branch --commit-filter ' | |
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ] | |
then | |
git commit-tree -S "$@"; | |
fi |
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
const Meili = require('meilisearch') | |
// Credentials of your MeiliSearch Instance | |
const config = { | |
host: 'http://127.0.0.1:7700', | |
apiKey: 'masterKey', | |
} | |
const meili = new Meili(config) |
OlderNewer