Skip to content

Instantly share code, notes, and snippets.

View vigneshrajkumar's full-sized avatar

Vignesh Rajkumar vigneshrajkumar

View GitHub Profile
@vigneshrajkumar
vigneshrajkumar / mongodb.conf
Created October 13, 2023 15:51
MongoDB base configuration
processManagement:
fork: true
net:
bindIp: localhost
port: 27017
storage:
dbPath: /var/lib/mongo
systemLog:
destination: file
path: "/var/log/mongodb/mongod.log"
"Symbol","Series","Date","Prev Close","Open Price","High Price","Low Price","Last Price","Close Price","Average Price","Total Traded Quantity","Turnover","No. of Trades","Deliverable Qty","% Dly Qt to Traded Qty"
"LT","EQ","03-May-2021"," 1340.45"," 1325.50"," 1351.30"," 1319.15"," 1341.50"," 1342.50"," 1335.57"," 1653245"," 2208017791.00"," 93782"," 609485"," 36.87"
"LT","EQ","04-May-2021"," 1342.50"," 1350.00"," 1350.90"," 1331.00"," 1338.00"," 1337.60"," 1339.13"," 2029558"," 2717832565.15"," 69020"," 1041025"," 51.29"
"LT","EQ","05-May-2021"," 1337.60"," 1342.20"," 1346.75"," 1324.00"," 1337.55"," 1338.65"," 1335.73"," 1813150"," 2421877876.55"," 73915"," 767367"," 42.32"
"LT","EQ","06-May-2021"," 1338.65"," 1344.00"," 1356.55"," 1335.75"," 1339.00"," 1339.90","
Specification Keyword RGB hex value
CSS Level 1 black #000000
CSS Level 1 silver #c0c0c0
CSS Level 1 gray #808080
CSS Level 1 white #ffffff
CSS Level 1 maroon #800000
CSS Level 1 red #ff0000
CSS Level 1 purple #800080
CSS Level 1 fuchsia #ff00ff
CSS Level 1 green #008000
heroku login // login into Heroku
heroku create // creates a new app in heroku and adds a remote to the repository.
heroku ps:scale web=1 // intitates the application with 1 free dyno
heroku logs --tail // streams the log of the app
// procfiles contains the trigger which starts your application
Ex: web: python manage.py runserver 0.0.0.0:5000
<?php
/* <======= Adding Styles ====> */
function theme_styles(){
wp_enqueue_style('bootstrap_css', get_template_directory_uri() . '/css/bootstrap.min.css');
}
add_action('wp_enqueue_scripts', 'theme_styles');
/* <======= Adding Scripts ====> */
function theme_js(){
@vigneshrajkumar
vigneshrajkumar / android_arrayAdapter.java
Created October 14, 2015 10:14
android widget adapter
String[] values = new String[] { "Android", "iPhone", "WindowsMobile" }; // array of String type
ArrayList<String> list = new ArrayList<String>(); // new List of String type
for (int i = 0 ; i < values.length; i++){
list.add(values[i]);
} // passing values to the list