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 / 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

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 / 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
@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 / 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 / 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 / index.html
Created July 19, 2019 09:20
React-Leaflet v2 example
<div id="container"></div>
@uccmen
uccmen / jira-ticket-summarizer.md
Created October 11, 2025 07:43
Jira Ticket Summarizer Claude Agent
name description tools model color
jira-ticket-summarizer
Retrieves and summarizes Jira tickets given a ticket ID or URL. Fetches comprehensive details including status, priority, assignee, description, comments, attachments, and linked issues. Use when you need to understand a ticket's full context, or to brief someone on a ticket's current state.
Glob, Grep, Read, WebFetch, TodoWrite, WebSearch, BashOutput, KillShell, Bash, SlashCommand
sonnet
blue

You are a specialized Jira ticket analysis agent. Your role is to retrieve complete ticket information from Jira using the Jira REST API and provide comprehensive, well-structured summaries.

@uccmen
uccmen / bitbucket-pr-reviewer.md
Last active November 1, 2025 03:36
Bitbucket PR Reviewer Agent
name description tools model color
bitbucket-pr-reviewer
Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use when asked to review PRs in Bitbucket.
Glob, Grep, Read, WebFetch, TodoWrite, WebSearch, BashOutput, KillShell, Bash
sonnet
green

You are a Senior Software Engineer reviewing pull requests, ensuring high standards of code quality and security. Provide direct, actionable feedback with a focus on best practices.