Skip to content

Instantly share code, notes, and snippets.

View ArjunKishore's full-sized avatar

Arjun Kishore ArjunKishore

  • Australia
View GitHub Profile
<html>
<head>
<title> csv2 sql</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
</head>
<body>
<br>
<h1> CSV to Mysql </h1>
<p> This Php Script Will Import very large CSV files to MYSQL database in a minute</p>
Rebase the old branch against the master branch.
Solve the merge conflicts during rebase, and the result will be an up-to-date branch that merges cleanly against master.
git checkout <branch> && git rebase <target>
In our case it is
git checkout <branch> && git rebase master
_------------------------------------
Frequently used commands
--------------
git stash save --keep-index --include-untracked
git stash drop
@ArjunKishore
ArjunKishore / SimpleXMLElement-node-existence.php
Created May 7, 2018 07:45 — forked from Thinkscape/SimpleXMLElement-node-existence.php
How to check if a <child> node exists in SimpleXMLElement document ? Comparison of different approaches.
<?php
/**
* The only reliable way of determining if a child exists
* in SimpleXMLElement is to use count(). All other methods
* do not work reliably in global or local NS.
*
* NOTE: Error suppresion on @count() is used to suppress
* "PHP Warning: count(): Node no longer exists"
*/
if(!class_exists('SimpleXMLElement')) die("Bonkers");