Profile
Achievement

satie83's Recent Snippets
- All /
I am using git and working on master branch. This branch has a file called app.js .
I have an experiment branch in which I made a bunch of changes and tons of commit. Now I want to bring all the changes done only to app.js from experiment to maste...
0
1255
posted 12 years ago by satie83
I have a Git repository with few branches and dangling commits. I would like to search all such commits in repository for a specific string.
0
1098
posted 12 years ago by satie83
Sometimes it’s helpful to ONLY get numeric characters.
Phone numbers, age — whatever your little PHP heart desires.
0
2004
posted 12 years ago by satie83
Once in a while we need to check whether a string contains substring, some other string or characters or a value. Checking for existence of a string (or substring) inside another string is easier than it might seem. The following article describes ho...
0
1011
posted 12 years ago by satie83
You’ll receive a list of your stale remote-tracking branches. If you run it without –dry-run option, it will remove them for you.
0
1002
posted 12 years ago by satie83
In javascript there is no function for printing variables like you have PHP, I use print_r and var_dump a lot in PHP for dumping variables
so I wanted to create a simular function in javascript.
0
1176
posted 12 years ago by satie83
This shows the local and remote branches along with the most recent commit for each branch.
0
1196
posted 12 years ago by satie83
Hash of the commit which you want to show a303aa90779efdd2f6b9d90693e2cbbbe4613c1d
0
1550
posted 12 years ago by satie83
Example calculate yesterday, but if you multiply by some number you can get in an easy way, weeks, months or years
0
1249
posted 12 years ago by satie83
Here’s a very simple script which adds numbers sequentially to an unordered list using jQuery
0
929
posted 12 years ago by satie83
How do I prevent previously submitted form data from being reinserted into the database when the user presses the browser's Refresh button?
Although it is not possible due to unique key constraint available in tables but it is unnecessary go to othe...
0
879
posted 12 years ago by satie83
Returns the version of Windows Internet Explorer or a -1 (indicating the use of another browser).
0
950
posted 13 years ago by satie83
This function checks if the $stringComplete variable ends with the string $endString.
0
885
posted 13 years ago by satie83
A nice way to do sorting of a key on a multi-dimensional array - DavidG
0
1192
posted 13 years ago by satie83
I want to get a list of all the branches in a Git repository with the "freshest" branches at the top, where the "freshest" branch is the one that's been committed to most recently (and is, therefore, more likely to be one I want to pay attention to).
0
981
posted 13 years ago by satie83