Skip to content

Instantly share code, notes, and snippets.

View Sadmansamee's full-sized avatar
🤖
Focusing

Sadman Samee Sadmansamee

🤖
Focusing
View GitHub Profile
@Sadmansamee
Sadmansamee / default.nginx
Last active June 7, 2019 14:19 — forked from movibe/default.nginx
Parse Server Nginx default
# HTTP - redirect all requests to HTTPS
server {
listen 80;
listen [::]:80 default_server ipv6only=on;
return 301 https://$host$request_uri;
}
# HTTPS - serve HTML from /usr/share/nginx/html, proxy requests to /parse/
# through to Parse Server
server {
@Sadmansamee
Sadmansamee / countries.json
Created October 18, 2018 14:13 — forked from lognaso/countries.json
Countries - name, dial_code, code
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
import android.text.TextUtils;
import io.realm.Case;
import io.realm.Realm;
import io.realm.RealmObject;
import io.realm.RealmResults;
public class RealmFullTextSearch {
public static <T extends RealmObject> RealmResults<T> search(Realm realm, Class<T> modelClass, String query, String fieldName, boolean partialSearch){
@Sadmansamee
Sadmansamee / StringExtensionHTML.swift
Created February 5, 2016 08:45
Decoding HTML Entities in Swift
//
// Extension.swift
// Hadith
//
// Created by Sadman samee on 2/5/16.
// Copyright © 2016 LoopsLab. All rights reserved.
//
import Foundation
import Foundation