Skip to content

Instantly share code, notes, and snippets.

View Simran1306's full-sized avatar

Simranjit Singh Simran1306

View GitHub Profile
@Simran1306
Simran1306 / country_state.json
Created May 1, 2026 18:27 — forked from manishtiwari25/country_state.json
List Of Countries With States And Other Useful Information, Updated On 05/01/2026 00:31:06
[
{
"name": "Andorra",
"countryCode": "AD",
"countryCodeAlpha3": "AND",
"phone": "376",
"currency": "EUR",
"flag": "https://www.geonames.org/flags/x/ad.gif",
"symbol": "\u20AC",
"stateProvinces": [
@Simran1306
Simran1306 / country_state.json
Created May 1, 2026 18:27 — forked from manishtiwari25/country_state.json
List Of Countries With States And Other Useful Information, Updated On 05/01/2026 00:31:06
[
{
"name": "Andorra",
"countryCode": "AD",
"countryCodeAlpha3": "AND",
"phone": "376",
"currency": "EUR",
"flag": "https://www.geonames.org/flags/x/ad.gif",
"symbol": "\u20AC",
"stateProvinces": [
@Simran1306
Simran1306 / Gemfile
Created September 13, 2025 16:04 — forked from amkisko/Gemfile
ActiveAdmin v4 propshaft, importmap, stimulus, tailwindcss and ActionPolicy configuration
# NOTE: partial content required for Gemfile
gem "rails"
gem "propshaft"
gem "importmap-rails"
gem "stimulus-rails"
gem "tailwindcss-rails"
gem "action_policy"
class Api::RegistrationsController < Api::BaseController
respond_to :json
def create
user = User.new(params[:user])
if user.save
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201
return
else