Skip to content

Instantly share code, notes, and snippets.

View akshay-nm's full-sized avatar
🏎️
Pace is good.

Akshay Kumar akshay-nm

🏎️
Pace is good.
View GitHub Profile
@ranjithkumar8352
ranjithkumar8352 / smsClient.js
Last active October 28, 2024 18:51
Send TextLocal SMS using Node.js
//This code was posted for an article at https://codingislove.com/send-sms-developers/
const axios = require("axios");
const tlClient = axios.create({
baseURL: "https://api.textlocal.in/",
params: {
apiKey: "YOUR API KEY", //Text local api key
sender: "6 CHARACTER SENDER ID"
}
@mynameispj
mynameispj / application_helper.rb
Created June 2, 2013 00:24
Rails - Easy "active" classes for menu links in Rails
module ApplicationHelper
def current_class?(test_path)
return 'active' if request.path == test_path
''
end
end