Skip to content

Instantly share code, notes, and snippets.

View uccmen's full-sized avatar
🏠
Working from home

Ucchishta Sivaguru uccmen

🏠
Working from home
View GitHub Profile
@uccmen
uccmen / index.html
Created July 19, 2019 09:20
React-Leaflet v2 example
<div id="container"></div>
@uccmen
uccmen / lockedDocument
Created January 15, 2014 02:45
How to solve the "Document is locked for editing" in LibreOffice issue.
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
uccmen / TO-DO
Last active January 2, 2016 09:09
Things to do
-[ ]Study Express.js - http://expressjs.com/
-[ ]Study dust.js - https://github.com/linkedin/dustjs
-[ ] Get recent photo
-[ ] Get EPF no.
@uccmen
uccmen / gist:8265879
Last active January 2, 2016 06:49
How to config root password
###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
uccmen / Branch a repo
Last active January 2, 2016 06:49
Notes about Git at work
# Creates a new branch called "mybranch"
# Makes "mybranch" the active branch
git branch mybranch
git checkout mybranch
OR
# 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
uccmen / gist:7927626
Last active December 31, 2015 03:29
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.
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