Skip to content

Instantly share code, notes, and snippets.

View zaghaghi's full-sized avatar

HamZag zaghaghi

  • Sweden, Stockholm
  • 23:45 (UTC +02:00)
View GitHub Profile
@zaghaghi
zaghaghi / (sample-ouput)movies.csv
Created December 8, 2012 22:23
scrape iranian movies from sourehcinema.com
138109110000,آبي و رابي,1309,http://www.sourehcinema.com/Title/Title.aspx?id=138109110000
138109110001,انتقام برادر,1310,http://www.sourehcinema.com/Title/Title.aspx?id=138109110001
138109110002,حاجي آقا اكتور سينما,1312,http://www.sourehcinema.com/Title/Title.aspx?id=138109110002
138109110003,دختر لر,1312,http://www.sourehcinema.com/Title/Title.aspx?id=138109110003
138109110051,بوالهوس,1313,http://www.sourehcinema.com/Title/Title.aspx?id=138109110051
138212170000,شيرين و فرهاد,1313,http://www.sourehcinema.com/Title/Title.aspx?id=138212170000
138109110006,فردوسي,1313,http://www.sourehcinema.com/Title/Title.aspx?id=138109110006
138103110007,چشم هاي سياه,1315,http://www.sourehcinema.com/Title/Title.aspx?id=138103110007
138208262000,ليلي و مجنون,1316,http://www.sourehcinema.com/Title/Title.aspx?id=138208262000
138109110009,زنداني امير,1327,http://www.sourehcinema.com/Title/Title.aspx?id=138109110009
[{
"name": "tab-dash",
"state": "tab.dash",
"title": "محصولات",
"icons": {
"on": "ion-ios7-pulse-strong",
"off": "ion-ios7-pulse"
},
"updatable": true,
"url": "/dash",
@zaghaghi
zaghaghi / Makefile
Created March 16, 2016 08:36
DPDK Test
ifeq ($(RTE_SDK),)
$(error "Please define RTE_SDK environment variable")
endif
# Default target, can be overriden by command line or environment
RTE_TARGET ?= x86_64-native-linuxapp-gcc
include $(RTE_SDK)/mk/rte.vars.mk
# binary name
@zaghaghi
zaghaghi / main.cpp
Created June 24, 2016 10:31
Multithreaded Face And Eye Detection Temaplate
#include <QGuiApplication>
#include <QtConcurrent>
#include <QDirIterator>
#include <QList>
#include <QImage>
#include <QPainter>
#include <QThreadPool>
class Face
{
{
"error": {
"code": 403,
"message": "Project uplifted-logic-180206 (#465184546895) has billing disabled. Please enable it.",
"status": "PERMISSION_DENIED",
"details": [
@zaghaghi
zaghaghi / sqlite.attach
Created October 23, 2017 10:05
How to insert table data from another database
sqlite> ATTACH "transcription.gt.db" as gt;
sqlite> select count(*) from gt.transcriptions;
10417
sqlite> select count(*) from transcriptions;
0
sqlite> insert into transcriptions select * from gt.transcriptions;
sqlite> select count(*) from transcriptions;
10417
@zaghaghi
zaghaghi / signup-test.js
Created July 4, 2018 05:27
how to call botava apis
fetch('https://api.botava.ir/v1/signup/', {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json; charset=utf-8',
'APIKEY': 'SKJSHDKJHKJHKJHKJKJHKJH'
},
body: JSON.stringify({
name: 'Hamed',
phone: '094284287824',
AudioRecorder.prepareRecordingAtPath(audioPath, {
SampleRate: 16000,
Channels: 1,
AudioQuality: "High",
AudioEncoding: "aac",
OutputFormat: "aac_adts",
AudioEncodingBitRate: 32000
});
{"result": "OK", "response": {"message": {"attachment": {"type": "weather", "payload": {"1531472400": {"clouds": {"all": 0}, "sys": {"pod": "d"}, "dt_txt": "2018-07-13 09:00:00", "weather": [{"main": "Clear", "id": 800, "icon": "01d", "description": "\u0622\u0633\u0645\u0627\u0646 \u0635\u0627\u0641"}], "main": {"temp_kf": 0, "temp": 27.08, "grnd_level": 745.22, "temp_max": 27.08, "sea_level": 1017.72, "humidity": 15, "pressure": 745.22, "temp_min": 27.08}, "wind": {"speed": 0.31, "deg": 169.001}}, "1531504800": {"clouds": {"all": 0}, "sys": {"pod": "n"}, "dt_txt": "2018-07-13 18:00:00", "weather": [{"main": "Clear", "id": 800, "icon": "01n", "description": "\u0622\u0633\u0645\u0627\u0646 \u0635\u0627\u0641"}], "main": {"temp_kf": 0, "temp": 13.82, "grnd_level": 745.47, "temp_max": 13.82, "sea_level": 1018.53, "humidity": 42, "pressure": 745.47, "temp_min": 13.82}, "wind": {"speed": 0.71, "deg": 74.5016}}, "1531278000": {"clouds": {"all": 0}, "sys": {"pod": "d"}, "dt_txt": "2018-07-11 03:00:00", "weather": [{
{
"cve" : {
"data_type" : "CVE",
"data_format" : "MITRE",
"data_version" : "4.0",
"CVE_data_meta" : {
"ID" : "CVE-2019-0240",
"ASSIGNER" : "[email protected]"
},
"affects" : {