Skip to content

Instantly share code, notes, and snippets.

View salmanindia's full-sized avatar
🎯
Focusing

Suleman Khan salmanindia

🎯
Focusing
View GitHub Profile
@sagebind
sagebind / MinGW-w64.sublime-build
Last active May 29, 2022 00:23
Sublime Text 3 C++ build system for mingw-w64
{
"cmd": ["g++", "-o", "${file_path}/${file_base_name}.exe", "-static-libgcc", "-static-libstdc++", "*.cpp"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.cpp, source.c++",
"path": "c:/Program Files/mingw-w64/mingw64/bin",
"shell": true,
"variants": [
{
"name": "Run",
@salmanindia
salmanindia / Flipkart API openkart
Last active August 29, 2015 14:10
Flipkart Add Product API
class ModelCatalogUpload extends Model {
public function getDataFromFile($file)
{$this->csv2array($file);}
public function selectProduct()
{ $this->delProducts();
$sql = "SELECT * FROM temp_products ";
$query = $this->db->query($sql);