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
extends layout | |
block content | |
table | |
tr | |
th Name | |
th Company | |
th Email | |
th City | |
th Country |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
int | |
main (void) | |
{ | |
int n; | |
int g; | |
char c; | |
srand (time (NULL)); |
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 rp = require("request-promise"); | |
const cheerio = require("cheerio"); | |
var Crawler = require("crawler"); | |
const baseURL = "https://techterms.com/category/software"; | |
const getSoftwareTerms = async () => { | |
const html = await rp(baseURL); | |
let list = []; | |
const $ = cheerio.load(html); | |
$("tbody td a").each(function(index, element) { |
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 elapsed(time) { | |
const $SECONDS = Math.abs(Math.floor(Date.now()/1000) - time); | |
const $iv_table = [ | |
"ثانية","دقيقة", "ساعة", "يوم", "شهر", "سنة", | |
"ثانيتين","دقيقتين", "ساعتين", "يومين", "شهرين", "سنتين", | |
"ثواني","دقائق", "ساعات", "أيام", "أشهر", "سنوات"] | |
const $iv = [$SECONDS, // ثانية | |
($SECONDS - ($SECONDS%60))/60, // دقيقة | |
($SECONDS - ($SECONDS%3600))/3600, // ساعة | |
($SECONDS - ($SECONDS%(3600*24)))/(3600*24), // يوم |