index.html
should be in public folder in the same directory with app.js.
This file contains hidden or 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
HIRE Me For Your Project Support :) | |
Telegram: https://t.me/LinuxGun | |
#!/bin/bash | |
# Completely Remove Apache Ubuntu | |
service apache2 stop | |
apt purge apache2 | |
apt remove apache2.* | |
apt autoremove | |
whereis apache2 |
This file contains hidden or 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
#!usr/bin/python | |
""" | |
Sample python script to migrate documents from mongodb to apache couchdb database. | |
This script reads a document from mongodb and writes it to couchdb database. | |
**Script does not support the use case for 'documents with attachments' | |
""" | |
import json | |
from argparse import ArgumentParser | |
import requests |
This file contains hidden or 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
<?php | |
class SanitizeUrl { | |
public static function slug($string, $space="-") { | |
$string = utf8_encode($string); | |
if (function_exists('iconv')) { | |
$string = iconv('UTF-8', 'ASCII//TRANSLIT', $string); | |
} | |
$string = preg_replace("/[^a-zA-Z0-9 \-]/", "", $string); |
This file contains hidden or 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
<?php | |
class SanitizeUrl { | |
public static function slug($string, $space="-") { | |
$string = utf8_encode($string); | |
if (function_exists('iconv')) { | |
$string = iconv('UTF-8', 'ASCII//TRANSLIT', $string); | |
} | |
$string = preg_replace("/[^a-zA-Z0-9 \-]/", "", $string); |
This file contains hidden or 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
RB.filter('daterange', function () | |
{ | |
return function(conversations, start_date, end_date) | |
{ | |
var result = []; | |
// date filters | |
var start_date = (start_date && !isNaN(Date.parse(start_date))) ? Date.parse(start_date) : 0; | |
var end_date = (end_date && !isNaN(Date.parse(end_date))) ? Date.parse(end_date) : new Date().getTime(); |