Skip to content

Instantly share code, notes, and snippets.

View helloanoop's full-sized avatar

Anoop M D helloanoop

View GitHub Profile
<?php
class Animal {
public function setName($name){
$this->name = $name;
}
public function getName(){
return $this->name;
}
@helloanoop
helloanoop / DateFormatter.java
Created August 25, 2016 23:03
DateFormatter Example in Java
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.time.Instant;
import java.time.ZoneId;
import java.time.ZonedDateTime;
public class DateFormatter{
public static void main(String []args){
System.out.println("Hello World 2");
{
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"draw_indent_guides": false,
"font_face": "Consolas",
"font_size": 13,
"highlight_line": true,
"ignored_packages":
[
"JSLint",
"Vintage"
{
"color_scheme": "Packages/Color Scheme - Default/Slush & Poppies.tmTheme",
"font_size": 12,
"theme": "Soda Light 3.sublime-theme",
"draw_indent_guides": false,
"font_face": "Consolas",
"highlight_line": true,
"line_padding_bottom": 4,
"line_padding_top": 4,
"translate_tabs_to_spaces": true,
@helloanoop
helloanoop / .bash_rc
Created September 1, 2017 13:38
My Bash Aliases
alias gs='git status';
alias gd='git diff';
alias gpm='git push origin master';
alias b='npm run build';
alias t='npm test';
@helloanoop
helloanoop / gist:930aa2b73c104ce38f79dbdba60bd971
Created February 23, 2018 10:49
OJET Table with Serverside data
<link rel="stylesheet" href="../node_modules/@oracle/oraclejet/dist/css/alta/oj-alta-min.css"/>
<script type="text/javascript" src="../node_modules/requirejs/require.js"></script>
<script type="text/javascript" src="main.js"></script>
<oj-table data="[[datasource]]"
columns='[[columns]]'
row-renderer='[[oj.KnockoutTemplateUtils.getRenderer("row_tmpl", true)]]'>
</oj-table>
@helloanoop
helloanoop / .bashrc
Created June 5, 2018 09:53
Bashrc Aliases
alias gs='git status';
alias gd='git diff';
alias gpm='git push origin master';
alias b='npm run build';
alias t='npm test';
alias sd='npm run start.dev';
alias vscode='/home/anoop/.local/share/umake/ide/visual-studio-code/bin/code';
@helloanoop
helloanoop / .npmrc
Created July 24, 2018 09:36
NPM Proxy Settings for Oracle
http_proxy=http://www-proxy.us.oracle.com:80
https_proxy=https://www-proxy.us.oracle.com:443
proxy=http://www-proxy.us.oracle.com:80
strict-ssl=false
registry=http://registry.npmjs.org
@helloanoop
helloanoop / .bashrc
Created September 5, 2018 20:13
Better Command Line Prompt
# https://coderwall.com/p/pn8f0g/show-your-git-status-and-branch-in-color-at-the-command-prompt
COLOR_RED="\033[0;31m"
COLOR_YELLOW="\033[0;33m"
COLOR_GREEN="\033[0;32m"
COLOR_OCHRE="\033[38;5;95m"
COLOR_BLUE="\033[0;34m"
COLOR_WHITE="\033[0;37m"
COLOR_RESET="\033[0m"
@helloanoop
helloanoop / .sublime-keymap
Last active September 19, 2018 17:12
ST3 Key Bindings
[
{ "keys": ["ctrl+left"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+right"], "command": "move_to", "args": {"to": "eol", "extend": false} }
]