Skip to content

Instantly share code, notes, and snippets.

Ucchishta Sivaguru uccmen

  • Kuala Lumpur
Block or report user

Report or block uccmen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
uccmen / index.html
Created Jul 19, 2019
React-Leaflet v2 example
View index.html
<div id="container"></div>
uccmen / lockedDocument
Created Jan 15, 2014
How to solve the "Document is locked for editing" in LibreOffice issue.
View lockedDocument
1. Go to path of the locked document.(i.e, cd /path/to/lockedFile.csv)
2. rm .~lock.lockedFile.csv#
3. You can now open the document normally.
uccmen / TO-DO
Last active Jan 2, 2016
Things to do
View TO-DO
-[ ]Study Express.js -
-[ ]Study dust.js -
-[ ] Get recent photo
-[ ] Get EPF no.
uccmen / gist:8265879
Last active Jan 2, 2016
How to config root password
View gist:8265879
###Type the following command:
sudo passwd
###The following message will appear:
[sudo] password for [username]: [Type your user password and press return]
###After that another message will appear, the following:
uccmen / Branch a repo
Last active Jan 2, 2016
Notes about Git at work
View Branch a repo
# Creates a new branch called "mybranch"
# Makes "mybranch" the active branch
git branch mybranch
git checkout mybranch
# Creates a new branch called "mybranch" and makes it the active branch
git checkout -b mybranch

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

uccmen / gist:7927626
Last active Dec 31, 2015
A simple JavaScript function get_integer_from_string() that will convert an input string to an integer, and return all integers found in that string WITHOUT using any built-in library functions like parseInt() and Number(). Return 0 if no numerical sequence is found.
View gist:7927626
function get_integer_from_string(str)
var result = 0,strint = (str.match(/\d/g)!==null)? result = str.match(/\d/g).join("")*1:result=0;
return result;
get_integer_from_string("100"); // returns 100
get_integer_from_string("100abc"); // returns 100
get_integer_from_string("100abc123"); // returns 100123
get_integer_from_string("1a0b0c1d2e3"); // returns 100123
You can’t perform that action at this time.