Help
RSS
API
Feed
Maltego
Contact
Domain > square.coderpad.io
×
Welcome!
Right click nodes and scroll the mouse to navigate the graph.
×
More information on this domain is in
AlienVault OTX
Is this malicious?
Yes
No
DNS Resolutions
Date
IP Address
2024-09-04
172.67.75.152
(
ClassC
)
2025-11-27
104.26.9.116
(
ClassC
)
Port 443
HTTP/1.1 200 OKDate: Thu, 27 Nov 2025 19:44:47 GMTContent-Type: text/html; charsetutf-8Transfer-Encoding: chunkedConnection: keep-aliveCF-Ray: 9a541f43eec0cb90-PDXCF-Cache-Status: DYNAMICCache-Control: max-age0, private, must-revalidateServer: cloudflarex-xss-protection: 1; modeblockStrict-Transport-Security: max-age31536000; includeSubDomains; preloadVary: Accept, Accept-Encoding, Origincf-apo-via: origin,hostcontent-security-policy: default-src self https: blob:; connect-src self ws: https: wss: data: file: https://edge.fullstory.com https://rs.fullstory.com https://sentry.io; img-src self https: data: http: blob: https://www.googletagmanager.com https://rs.fullstory.com; object-src none; script-src self https: https://*.firebaseio.com https://www.googletagmanager.com https://edge.fullstory.com https://rs.fullstory.com https://js.hs-analytics.net https://www.google-analytics.com https://connect.facebook.net https://localhost.ssl:8088 unsafe-inline unsafe-eval blob:; worker-src self https: blob:; style-src self https: blob: unsafe-inline unsafe-eval; media-src self https: data: blob:; font-src self https: data: chrome-extension moz-extension https://fonts.gstatic.com http://themes.googleusercontent.com; frame-ancestors self; report-uri /csp-reportnel: {report_to:heroku-nel,response_headers:Via,max_age:3600,success_fraction:0.01,failure_fraction:0.1}referrer-policy: strict-origin-when-cross-originreport-to: {group:heroku-nel,endpoints:{url:https://nel.heroku.com/reports?scbHkhtVtQrmtDb07Vakk0LJVb03gT6AuSDpmLIlnT0k%3D\u0026side11707d5-02a7-43ef-b45e-2cf4d2036f7d\u0026ts1764272686},max_age:3600}reporting-endpoints: heroku-nelhttps://nel.heroku.com/reports?scbHkhtVtQrmtDb07Vakk0LJVb03gT6AuSDpmLIlnT0k%3D&side11707d5-02a7-43ef-b45e-2cf4d2036f7d&ts1764272686x-content-type-options: nosniffx-download-options: noopenx-frame-options: SAMEORIGINx-permitted-cross-domain-policies: nonex-request-id: 43795c7b-eb9d-9944-06a8-7d71f43c454ax-robots-tag: nonex-runtime: 0.031999x-ua-compatible: IEedgeSet-Cookie: _coderpad_rails_session_31a468a7f74034585a2084c586c8e00c3; HttpOnly; SameSiteLax; Secure; Path/; Domain.coderpad.ioalt-svc: h3:443; ma86400 !DOCTYPE html>!-- ______ ______ _____ ______ ______ ______ ______ _____/\ ___\ /\ __ \ /\ __-. /\ ___\ /\ \ /\ \ /\ __ \ /\ __-.\ \ \____ \ \ \/\ \ \ \ \/\ \ \ \ __\ \ \ __ \ \ _-/ \ \ __ \ \ \ \/\ \ \ \_____\ \ \_____\ \ \____- \ \_____\ \ \_\ \_\ \ \_\ \ \_\ \_\ \ \____- \/_____/ \/_____/ \/____/ \/_____/ \/_/ /_/ \/_/ \/_/\/_/ \/____/(c) 2025 CoderPad, Inc - Poking around? Want to chat? support@coderpad.io or @CoderPad-->html langen>head> meta charsetUTF-8> meta nameviewport contentwidthdevice-width, initial-scale1.0> meta namedescription contentCoderPad is the best tool available for conducting programming phone screen interviews. Edit code and run it with your candidate, realtime in the browser.> link relshortcut icon hrefhttps://d1a7p14oqam61r.cloudfront.net/assets/coderpad_logo_32x32_favicon-c192e2443888b80109075a64c17a6f544fbbd5f4c01c918764c05355671bdab5.png> link relapple-touch-icon hrefhttps://d1a7p14oqam61r.cloudfront.net/assets/coderpad_logo_32x32_favicon-c192e2443888b80109075a64c17a6f544fbbd5f4c01c918764c05355671bdab5.png> title>Login | CoderPad/title> meta propertyog:title contentLogin | CoderPad> meta propertyog:description contentAn online IDE for technical interviews offering a better candidate experience.> meta propertyog:image contenthttps://d1a7p14oqam61r.cloudfront.net/assets/coderpad_og_image-fa30e555ba90b1345a211d03525594e1f034e1d524dc675f709e5c0a4146f1ac.png> meta propertyog:url contenthttps://square.coderpad.io/> meta nametwitter:card contentsummary_large_image> link relstylesheet mediaall hrefhttps://d1a7p14oqam61r.cloudfront.net/assets/application-0b949a057a500316bba53dc39859033756f51670d3f18b0c5aaaa8b46088319e.css /> meta namecsrf-param contentauthenticity_token />meta namecsrf-token contentErDVCnpykucYRYGX8PEvULz/vE0sFrsdrm2DRgi3Wmd1j0p8RQ+Ad4K+Zb7y5hx0LvuTVllO/0lxAIKkmE5a+Q /> !-- Global site tag (gtag.js) - Google Analytics --> script async srchttps://www.googletagmanager.com/gtag/js?idG-BNB68819RG>/script> script> window.dataLayer window.dataLayer || ; function gtag(){dataLayer.push(arguments);} gtag(js, new Date()); gtag(config, G-BNB68819RG); /script> !-- Google Tag Manager --> script>(function(w,d,s,l,i){wlwl||;wl.push({gtm.start: new Date().getTime(),event:gtm.js});var fd.getElementsByTagName(s)0, jd.createElement(s),dll!dataLayer?&l+l:;j.asynctrue;j.src https://www.googletagmanager.com/gtm.js?id+i+dl;f.parentNode.insertBefore(j,f); })(window,document,script,dataLayer,GTM-WXZCKC8);/script> !-- End Google Tag Manager --> script> window.CoderPad window.CoderPad || {}; window.CoderPad.FLAGS {}; window.CoderPad.STITCH_URL https://hooks.stitchdata.com/v1/clients/151432/token/bf247e16cd3809c639b6861276e6d837416a53e952817697bb702e8937c55b42; window.CoderPad.STITCH_WEBHOOK_KEYLOGS https://hooks.stitchdata.com/v1/clients/151432/token/2dbbcbe01f3249377329c4417a7b58c866712ba2afa18e15ca92c148d03cadae; window.CoderPad.STITCH_WEBHOOK_MOUSELOGS https://hooks.stitchdata.com/v1/clients/151432/token/46b5fff2b9f221d17fed5506e69d3295be908f28bebdaa258be198f16d0d9f09; window.hsConversationsSettings { loadImmediately: false, } window.CoderPad.ASSET_HOST https://d1a7p14oqam61r.cloudfront.net window.CoderPad.ASSETS { focus_time_warning.mp3: https://d1a7p14oqam61r.cloudfront.net/assets/focus_time_warning-653d0734307fb164b8881091ca780c436cd8f9332c81e5f69011b90b42484e23.mp3, recording_in_progress.mp3: https://d1a7p14oqam61r.cloudfront.net/assets/recording_in_progress-0a7914bf82282341accb60912016c65ac9edb109a42e2efa339ded34157cfe9a.mp3, speech-processor.js: https://d1a7p14oqam61r.cloudfront.net/assets/speech-processor-f6288af86006df64c7a94021a6bc1463aa8ebd5c4eca7a521038322f8e575426.js } window.CoderPad.AUTOCOMPLETE_URL https://autocomplete.coderpad.io window.CoderPad.CANONICAL_DOMAIN coderpad.io window.CoderPad.CANONICAL_URL https://coderpad.io window.CoderPad.COLORS #36BFF9, #FBBD23, #FC6E8D, #A0D911, #A78BFA, #50B4B1 window.CoderPad.ENVIRONMENT production window.CoderPad.RELEASE 09bfd81f3405510f8ad72bfdb4a620dea191ed50 window.CoderPad.EXECUTE_URL https://execute.coderpad.io window.CoderPad.GPES_EXECUTE_URL https://interview-execute.coderpad.io window.CoderPad.AI_CHAT_SERVICE_URL https://ai-chat.coderpad.io window.CoderPad.SESSION_RECORDING_SERVICE_URL https://playback.coderpad.io window.CoderPad.TRANSCRIPT_SERVICE_URL wss://transcription.coderpad.io window.CoderPad.PROJECT_IFRAME_URL_SUFFIX cdpad.io window.CoderPad.SANDBOX_INTROS This is a sandbox environment that allows you to experiment with CoderPads execution capabilities., Its a temporary throw-away session only visible to you so you can test out the programming environment., Once you select a language, to execute your code simply hit the Run button which will be located in the, top left hand of your screen., , To see more information about the language you have selected, hit the Info button beside the language dropdown., Youll find what version of the language is running and the packages available for the given language. window.CoderPad.SHORTLINK_URL https://cpad.io window.CoderPad.DRAWING_URL https://drawing.coderpad.io window.CoderPad.EXCALIDRAW_ROOM_SOCKET_URL wss://excalidraw.coderpad.io window.CoderPad.EXCALIDRAW_ROOM_API_URL https://excalidraw.coderpad.io window.CoderPad.USERFLOW_APP_ID ct_dexqlwm5vrfmhbwtjxo2brslw4 window.CoderPad.USERFLOW_ENTERPRISE_ENV_ID ct_ezu4jlnt3vbfrjvkkvrn7ysq4a window.CoderPad.HUBSPOT_PORTAL_ID 26307476 window.CoderPad.HUBSPOT_CUSTOM_SCRIPT_SRC https://js-eu1.hs-scripts.com/26307476.js window.CoderPad.INTEGRATIONS_SERVICE_URL https://ats-api.coderpad.io window.CoderPad.GOOGLE_CLIENT_ID 210528517372-afkrdc2g5l84dva5pred8glfe37aiafi.apps.googleusercontent.com window.CoderPad.LANGUAGES {bash:{default_path:/tmp/project/main.bash,language_client_id:bash,display:Bash,version:GNU bash, version 5.2,tab_size:2,mode:text/x-sh,category:interpreted,execution:true,custom_file_allowed:true,line_comment_token:#,example:for i in `seq 1 10`;\ndo\n echo \Hello, World! - \$i\ndone\n,name:bash},c:{default_path:/tmp/project/main.c,language_client_id:c,display:C,version:GCC 12.1 (C17),tab_size:2,mode:text/x-csrc,category:compiled,execution:true,custom_file_allowed:true,autocomplete:{type:legacy},line_comment_token://,block_comment_tokens:/*,*/,example:#include \u003cstdio.h\u003e\n\n// To execute C, please define \int main()\\n\nint main() {\n for (int i 0; i \u003c 5; i++) {\n printf(\Hello, World\\n\);\n }\n return 0;\n}\n,name:c},clojure:{default_path:/tmp/project/main.clj,language_client_id:clojure,display:Clojure,version:Clojure 1.11,tab_size:2,mode:clojure,category:compiled,execution:true,custom_file_allowed:true,line_comment_token:;;,example:(defn hello times\n (prn \Hello, World\)\n (cond (\u003e times 1) (hello (- times 1)))\n)\n\n(hello 5)\n,name:clojure},coffeescript:{default_path:/tmp/project/main.coffee,display:CoffeeScript,version:CoffeeScript 2.7 under Node.js v20,tab_size:2,mode:coffeescript,category:interpreted,execution:true,custom_file_allowed:true,line_comment_token:#,block_comment_tokens:###,###,example:_ require lodash\n\nsayHello -\u003e\n console.log Hello, World\n\nsayHello() for 1..5\n,name:coffeescript},cpp:{default_path:/tmp/project/main.cpp,language_client_id:cpp,display:C++,version:GCC 12.1.0 (C++20),tab_size:2,mode:text/x-c++src,category:compiled,execution:true,custom_file_allowed:true,test_case_grading:true,autocomplete:{type:lsp,diagnostics:false},database_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:#include \u003ciostream\u003e\nusing namespace std;\n\n// To execute C++, please define \int main()\\nint main() {\n auto words { \Hello, \, \World!\, \\\n\ };\n for (const char* const\u0026 word : words) {\n cout \u003c\u003c word;\n }\n return 0;\n}\n,packages:{libpqxx:{database:postgresql,display:libpqxx (Postgres),example:#include \u003ciostream\u003e\n#include \u003cpqxx/pqxx\u003e\n\nint main()\n{\n try\n {\n pqxx::connection C{\postgresql:///coderpad?host/tmp/postgresql/socket\};\n pqxx::work W{C};\n\n pqxx::result R{W.exec(\SELECT id, first_name, last_name, salary FROM employees\)};\n\n int count R.size();\n std::cout \u003c\u003c \Found \ \u003c\u003c count \u003c\u003c \ employees:\\n\;\n for (auto row: R)\n std::cout \u003c\u003c row0.c_str() \u003c\u003c \ | \ \u003c\u003c row1.c_str() \u003c\u003c \ | \ \u003c\u003c row2.c_str() \u003c\u003c \\n;\n\n // Execute SQL to insert a record\n W.exec(\INSERT INTO employees (first_name, last_name) VALUES (Person \ + std::to_string(count) + \, C++);\);\n W.commit();\n C.disconnect();\n }\n catch (std::exception const \u0026e)\n {\n std::cerr \u003c\u003c e.what() \u003c\u003c \\n;\n return 1;\n }\n return 0;\n}\n,name:libpqxx},mysql_connector:{database:mysql,display:MySQL Connector,example:#include \u003cstdlib.h\u003e\n#include \u003ciostream\u003e\n\n#include \mysql_connection.h\\n\n#include \u003ccppconn/driver.h\u003e\n#include \u003ccppconn/exception.h\u003e\n#include \u003ccppconn/resultset.h\u003e\n#include \u003ccppconn/statement.h\u003e\n#include \u003ccppconn/prepared_statement.h\u003e\n\nusing namespace std;\n\nint main(void)\n{\n\ntry {\n sql::Driver *driver;\n sql::Connection *connection;\n sql::Statement *statement;\n sql::PreparedStatement *prepared_statement;\n sql::ResultSet *result;\n\n // Create a connection\n driver get_driver_instance();\n connection driver -\u003e connect(\unix:///tmp/mysql/socket/mysqld.sock\, \coderpad\, \\);\n // Connect to the coderpad database\n connection -\u003e setSchema(\coderpad\);\n\n // Select all rows from the employees table.\n statement connection-\u003ecreateStatement();\n result statement-\u003eexecuteQuery(\SELECT * FROM employees;\);\n sql::ResultSetMetaData *result_meta result -\u003e getMetaData();\n int columnCount result_meta -\u003e getColumnCount();\n int count 0;\n\n cout \u003c\u003c \All rows in the employees table:\ \u003c\u003c endl;\n while (result -\u003e next()) {\n // Access result set by index, 1-indexed\n for (int i 1; i \u003c columnCount; i++) {\n cout \u003c\u003c result -\u003e getString(i) \u003c\u003c \ | \ ;\n }\n cout \u003c\u003c endl;\n count++;\n }\n cout \u003c\u003c \There are \ \u003c\u003c count \u003c\u003c \ rows.\ \u003c\u003c endl;\n\n // Insert a new row using a prepared statement\n prepared_statement connection -\u003e prepareStatement(\INSERT INTO employees (first_name, last_name) VALUES (?, ?)\);\n prepared_statement -\u003e setString(1, \Person \ + to_string(count));\n prepared_statement -\u003e setString(2, \C++\);\n prepared_statement -\u003e executeUpdate();\n delete prepared_statement;\n\n delete connection;\n\n} catch (sql::SQLException \u0026e) {\n cout \u003c\u003c \# ERR: SQLException in \ \u003c\u003c __FILE__;\n cout \u003c\u003c \(\ \u003c\u003c __FUNCTION__ \u003c\u003c \) on line \ \u003c\u003c __LINE__ \u003c\u003c endl;\n cout \u003c\u003c \# ERR: \ \u003c\u003c e.what();\n cout \u003c\u003c \ (MySQL error code: \ \u003c\u003c e.getErrorCode();\n cout \u003c\u003c \, SQLState: \ \u003c\u003c e.getSQLState() \u003c\u003c \ )\ \u003c\u003c endl;\n}\n\ncout \u003c\u003c endl;\n\nreturn EXIT_SUCCESS;\n}\n,name:mysql_connector}},name:cpp},csharp:{default_path:/tmp/project/Main.cs,language_client_id:csharp,display:C#,version:.NET Core 8.0,tab_size:4,mode:text/x-csharp,category:compiled,execution:true,custom_file_allowed:true,test_case_grading:true,autocomplete:{type:legacy},database_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:using System;\n\n// To execute C#, please define \static void Main\ on a class\n// named Solution.\n\nclass Solution\n{\n static void Main(string args)\n {\n for (var i 0; i \u003c 5; i++)\n {\n Console.WriteLine(\Hello, World\);\n }\n }\n}\n,packages:{dapper_mysql:{database:mysql,display:Dapper (MySQL),example:using System;\nusing Dapper;\nusing MySql.Data.MySqlClient;\n\n// Define a class that matches the employees table.\npublic class Employee\n{\n #nullable enable\n public int id { get; set; }\n public string? first_name { get; set; }\n public string? last_name { get; set; }\n public int? salary { get; set; }\n}\n\nclass Solution\n{\n static void Main(string args)\n {\n using (var connection new MySqlConnection(\Server/tmp/mysql/socket/mysqld.sock; Protocolunix; Databasecoderpad; Usernamecoderpad\) )\n {\n // Select all rows from the employees table.\n string employeesSql \SELECT * FROM employees;\;\n Console.WriteLine($\Running query: {employeesSql}\);\n var employees connection.Query\u003cEmployee\u003e(employeesSql);\n int count 0;\n foreach (var employee in employees)\n {\n Console.WriteLine(employee.id + \, \ + employee.first_name + \, \ + employee.last_name + \, \ + employee.salary);\n count++;\n }\n\n // Insert a new row.\n string insertSql $\INSERT INTO employees (first_name, last_name, salary) VALUES (Person {count}, Csharp, {count * 10000});\;\n Console.WriteLine($\Running query: {insertSql}\);\n connection.Execute(insertSql);\n }\n }\n}\n,name:dapper_mysql},dapper_postgresql:{database:postgresql,display:Dapper (Postgresql),example:using System;\nusing Dapper;\nusing Npgsql;\n\n// Define a class that matches the employees table.\npublic class Employee\n{\n #nullable enable\n public int id { get; set; }\n public string? first_name { get; set; }\n public string? last_name { get; set; }\n public int? salary { get; set; }\n}\n\nclass Solution\n{\n static void Main(string args)\n {\n using (var connection new NpgsqlConnection(\Host/tmp/postgresql/socket; Databasecoderpad; Usernamecoderpad\))\n {\n // Select all rows from the employees table.\n string employeesSql \SELECT * FROM employees;\;\n Console.WriteLine($\Running query: {employeesSql}\);\n var employees connection.Query\u003cEmployee\u003e(employeesSql);\n int count 0;\n foreach (var employee in employees)\n {\n Console.WriteLine(employee.id + \, \ + employee.first_name + \, \ + employee.last_name + \, \ + employee.salary);\n count++;\n }\n\n // Insert a new row.\n string insertSql $\INSERT INTO employees (first_name, last_name, salary) VALUES (Person {count}, Csharp, {count * 10000});\;\n Console.WriteLine($\Running query: {insertSql}\);\n connection.Execute(insertSql);\n }\n }\n}\n,name:dapper_postgresql},entity_framework_mysql:{database:mysql,display:Entity Framework (MySQL),example:using System;\nusing Microsoft.EntityFrameworkCore;\nusing MySql.Data.EntityFrameworkCore;\n\n// Define a class that matches the employees table schema.\npublic class Employee\n{\n #nullable enable\n public int id { get; set; }\n public string? first_name { get; set; }\n public string? last_name { get; set; }\n public int? salary { get; set; }\n}\n\npublic class DatabaseContext : DbContext\n{\n public DbSet\u003cEmployee\u003e employees { get; set; } null!;\n\n protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)\n {\n optionsBuilder.UseMySQL(\Server/tmp/mysql/socket/mysqld.sock; Protocolunix; Databasecoderpad; Usernamecoderpad\);\n }\n}\n\nclass Solution\n{\n static void Main(string args)\n {\n using (var db new DatabaseContext())\n {\n // Find all employees.\n var employees db.employees;\n int count 0;\n foreach(var employee in employees)\n {\n Console.WriteLine(employee.id + \, \ + employee.first_name + \, \ + employee.last_name + \, \ + employee.salary);\n count++;\n }\n\n // Add a new employee.\n Console.WriteLine($\Inserting new employee: Person {count}\);\n var newEmployee new Employee(){ first_name $\Person {count}\, last_name \Csharp\, salary count * 10000 };\n db.employees.Add(newEmployee);\n db.SaveChanges();\n }\n }\n}\n,name:entity_framework_mysql},entity_framework_postgresql:{database:postgresql,display:Entity Framework (Postgres),example:using System;\nusing Microsoft.EntityFrameworkCore;\nusing Npgsql.EntityFrameworkCore.PostgreSQL;\n\n// Define a class that matches the employees table schema.\npublic class Employee\n{\n #nullable enable\n public int id { get; set; }\n public string? first_name { get; set; }\n public string? last_name { get; set; }\n public int? salary { get; set; }\n}\n\npublic class DatabaseContext : DbContext\n{\n public DbSet\u003cEmployee\u003e employees { get; set; } null!;\n\n protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)\n {\n optionsBuilder.UseNpgsql(\Host/tmp/postgresql/socket; Databasecoderpad; Usernamecoderpad\);\n }\n}\n\nclass Solution\n{\n static void Main(string args)\n {\n using (var db new DatabaseContext())\n {\n // Find all employees.\n var employees db.employees;\n int count 0;\n foreach(var employee in employees)\n {\n Console.WriteLine(employee.id + \, \ + employee.first_name + \, \ + employee.last_name + \, \ + employee.salary);\n count++;\n }\n\n // Add a new employee.\n Console.WriteLine($\Inserting new employee: Person {count}\);\n var newEmployee new Employee(){ first_name $\Person {count}\, last_name \Csharp\, salary count * 10000 };\n db.employees.Add(newEmployee);\n db.SaveChanges();\n }\n }\n}\n,name:entity_framework_postgresql},mysql_data:{database:mysql,display:MySQL Connector/NET,example:using System;\nusing MySql.Data.MySqlClient;\n\nclass Solution\n{\n static void Main(string args)\n {\n MySqlConnection connection new MySqlConnection(\Host/tmp/mysql/socket/mysqld.sock; Protocolunix; Databasecoderpad; Usernamecoderpad\);\n connection.Open();\n using var command new MySqlCommand();\n command.Connection connection;\n\n // Select all rows from the employees table.\n command.CommandText \SELECT * FROM employees;\;\n Console.WriteLine($\Running query: {command.CommandText}\);\n int count 0;\n using (MySqlDataReader reader command.ExecuteReader()) {\n Console.WriteLine($\{reader.GetName(0)}, {reader.GetName(1)}, {reader.GetName(2)}, {reader.GetName(3)}\);\n while (reader.Read())\n {\n Console.WriteLine($\{reader.GetValue(0)}, {reader.GetValue(1)}, {reader.GetValue(2)}, {reader.GetValue(3)}\);\n count++;\n }\n }\n\n // Insert a new row.\n command.CommandText $\INSERT INTO employees (first_name, last_name, salary) VALUES (Person {count}, Csharp, {count * 10000});\;\n Console.WriteLine($\Running query: {command.CommandText}\);\n command.ExecuteNonQuery();\n }\n}\n,name:mysql_data},npgsql:{database:postgresql,display:Npgsql,example:using System;\nusing Npgsql;\n\nclass Solution\n{\n static void Main(string args)\n {\n NpgsqlConnection connection new NpgsqlConnection(\Host/tmp/postgresql/socket; Databasecoderpad; Usernamecoderpad\);\n connection.Open();\n using var command new NpgsqlCommand();\n command.Connection connection;\n\n // Select all rows from the employees table.\n command.CommandText \SELECT * FROM employees;\;\n Console.WriteLine($\Running query: {command.CommandText}\);\n int count 0;\n using (NpgsqlDataReader reader command.ExecuteReader()) {\n Console.WriteLine($\{reader.GetName(0)}, {reader.GetName(1)}, {reader.GetName(2)}, {reader.GetName(3)}\);\n while (reader.Read())\n {\n Console.WriteLine($\{reader.GetValue(0)}, {reader.GetValue(1)}, {reader.GetValue(2)}, {reader.GetValue(3)}\);\n count++;\n }\n }\n\n // Insert a new row.\n command.CommandText $\INSERT INTO employees (first_name, last_name, salary) VALUES (Person {count}, Csharp, {count * 10000});\;\n Console.WriteLine($\Running query: {command.CommandText}\);\n command.ExecuteNonQuery();\n }\n}\n,name:npgsql}},name:csharp},dart:{default_path:/tmp/project/main.dart,language_client_id:dart,display:Dart,version:Dart 3.0,tab_size:2,mode:application/dart,category:compiled,execution:true,custom_file_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:void main() {\n for(var i 0; i \u003c 5; i++) {\n print(Hello, World!);\n }\n}\n,name:dart},elixir:{default_path:/tmp/project/main.ex,display:Elixir,version:Elixir 1.15 (Erlang/OTP 26),tab_size:2,mode:elixir,category:interpreted,execution:true,custom_file_allowed:true,line_comment_token:#,example:for _ \u003c- 1..5, do: IO.puts \Hello, World!\\n,name:elixir},erlang:{default_path:/tmp/project/main.erl,display:Erlang,version:Erlang/OTP 26,tab_size:2,mode:text/x-erlang,category:compiled,execution:true,custom_file_allowed:true,line_comment_token:%,example:-module(solution).\n-export(start/0).\n\n% To execute Erlang, please declare the module as \solution\\n% and define a method named \start\ on it.\n\nstart() -\u003e\n say_hello(5).\n\nsay_hello(0) -\u003e\n 0;\nsay_hello(N) -\u003e\n io:format(\Hello, World~n\),\n say_hello(N - 1).\n,name:erlang},fsharp:{default_path:/tmp/project/Main.fs,display:F#,version:.NET Core 8.0,tab_size:4,mode:text/x-fsharp,category:compiled,execution:true,custom_file_allowed:true,line_comment_token://,block_comment_tokens:(*,*),example:module Solution\n\n\u003cEntryPoint\u003e\nlet main argv \n printfn \Hello, World!\\n 0 // Return an integer exit code\n,name:fsharp},go:{default_path:/tmp/project/main.go,language_client_id:go,display:Go,version:Go 1.22,tab_size:2,mode:go,category:compiled,execution:true,custom_file_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:// To execute Go code, please declare a func main() in a package \main\\n\npackage main\n\nimport \fmt\\n\nfunc main() {\n for i : 0; i \u003c 5; i++ {\n fmt.Println(\Hello, World!\)\n }\n}\n,name:go},gsheets:{display:Google Sheets,category:spreadsheets,name:gsheets},hack:{default_path:/tmp/project/main.hh,display:Hack,version:HHVM 4.172.0,tab_size:2,mode:text/x-hack,category:compiled,execution:true,custom_file_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:\u003c?hh\n\nfunction say_hello(): void {\n echo \Hello, World!\\n\;\n}\n\n\u003c\u003c__EntryPoint\u003e\u003e\nasync function main(): Awaitable\u003cvoid\u003e {\n for ($i 0; $i \u003c 5; $i++) {\n say_hello();\n }\n}\n,name:hack},haskell:{default_path:/tmp/project/Main.hs,display:Haskell,version:GHC 9.0,tab_size:2,mode:haskell,category:compiled,execution:true,custom_file_allowed:true,line_comment_token:--,block_comment_tokens:-{,-},example:-- Solution will run in Haskell Interpreted Mode\n\nmain putStrLn \Hello, World!\\n,name:haskell},html:{default_path:/tmp/project/index.html,display:HTML/JS/CSS,version:HTML 5,tab_size:2,mode:htmlmixed,category:frontend,execution:true,block_comment_tokens:\u003c!--,--\u003e,example:\u003chtml\u003e\n \u003chead\u003e\n \u003cstyle\u003e\n body {\n background-color: #1d2126;\n color: white;\n }\n \u003c/style\u003e\n \u003c/head\u003e\n \u003cbody\u003e\n \u003ch1\u003eHello, World\u003c/h1\u003e\n \u003c/body\u003e\n\u003c/html\u003e\n,multifile_example:\u003chtml\u003e\n \u003chead\u003e\n \u003cmeta charset\UTF-8\\u003e\n \u003ctitle\u003eReact Pad\u003c/title\u003e\n \u003cscript src\https://unpkg.com/react@17.0.2/umd/react.production.min.js\\u003e\u003c/script\u003e\n \u003cscript src\https://unpkg.com/react-dom@17.0.2/umd/react-dom.production.min.js\\u003e\u003c/script\u003e\n \u003cscript src\https://unpkg.com/@babel/standalone@7.13.12/babel.min.js\\u003e\u003c/script\u003e\n \u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv id\root\/\u003e\n \u003c/body\u003e\n\u003c/html\u003e\n,global_file_path:/home/coderpad/index.html,global_file_label:HTML,files:{path:/home/coderpad/index.js,default_path:/tmp/project/index.js,label:JS,example:const Instructions ()\u003e{\n return (\u003cp\u003eWelcome to the 3-pane coding view. Weve started you off with a basic \u003cu\u003eReact\u003c/u\u003e project, but feel free to replace it with whatever suits your needs. You can write code separately across the panes or you can write JS and CSS inline in the \u003cb\u003eHTML\u003c/b\u003e file.\u003c/p\u003e)\n}\n\nconst App () \u003e {\n return (\n \u003cdiv className\App\\u003e\n \u003ch1\u003eHello React!\u003c/h1\u003e\n \u003cInstructions/\u003e\n \u003c/div\u003e\n )\n}\n\nReactDOM.render(\u003cApp /\u003e, document.getElementById(root))\n,language:jsx},{path:/home/coderpad/index.css,default_path:/tmp/project/index.css,label:CSS,example:.App {\n width:500px;\n border:2px solid black;\n border-radius:20px;\n background: linear-gradient(#fff 10%, #f1f1f1 98%, #ccc);\n padding:0 20px 20px;\n font-family: monospace;\n}\n\nbody {\n background: #def;\n}\n,language:css},name:html},java:{default_path:/tmp/project/src/main/java/Solution.java,language_client_id:java,display:Java,version:OpenJDK 20,tab_size:2,mode:text/x-java,category:compiled,execution:true,test_case_grading:true,database_allowed:true,custom_file_allowed:true,autocomplete:{type:lsp,diagnostics:true},line_comment_token://,block_comment_tokens:/*,*/,example:/*\n * Click `Run` to execute the snippet below!\n */\n\nimport java.io.*;\nimport java.util.*;\n\n/*\n * To execute Java, please define \static void main\ on a class\n * named Solution.\n *\n * If you need more classes, simply define them inline.\n */\n\nclass Solution {\n public static void main(String args) {\n ArrayList\u003cString\u003e strings new ArrayList\u003cString\u003e();\n strings.add(\Hello, World!\);\n strings.add(\Welcome to CoderPad.\);\n strings.add(\This pad is running Java \ + Runtime.version().feature());\n\n for (String string : strings) {\n System.out.println(string);\n }\n }\n}\n,packages:{jdbc_mysql:{display:JDBC (MySQL),database:mysql,example:import java.sql.*;\n\nclass Solution {\n public static void main(String args) {\n try {\n Connection connection DriverManager.getConnection(\jdbc:mysql://localhost:3306/coderpad\,\coderpad\,\\);\n\n System.out.println(\Current records:\);\n Statement statement connection.createStatement();\n ResultSet resultSet statement.executeQuery(\SELECT * from employees\);\n ResultSetMetaData resultSetMetaData resultSet.getMetaData();\n int columnsNumber resultSetMetaData.getColumnCount();\n int count 0;\n while (resultSet.next()) {\n count++;\n for (int i 1; i \u003c columnsNumber; i++) {\n if (i \u003e 1) {\n System.out.print(\, \);\n }\n String columnValue resultSet.getString(i);\n System.out.print(resultSetMetaData.getColumnName(i) + \: \ + columnValue);\n }\n System.out.println(\\);\n }\n System.out.println(\There are \ + count + \ records.\);\n\n String insertSql \INSERT INTO employees (first_name, last_name) \\n + \VALUES (Person \ + count + \, Java)\;\n System.out.println(\Running SQL: \ + insertSql);\n statement.executeUpdate(insertSql);\n\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n}\n,name:jdbc_mysql},jdbc_postgresql:{display:JDBC (Postgres),database:postgresql,example:import java.sql.*;\n\nclass Solution {\n public static void main(String args) {\n try {\n Connection connection DriverManager.getConnection(\jdbc:postgresql://localhost:5432/coderpad\,\coderpad\,\\);\n\n System.out.println(\Current records:\);\n Statement statement connection.createStatement();\n ResultSet resultSet statement.executeQuery(\SELECT * from employees\);\n ResultSetMetaData resultSetMetaData resultSet.getMetaData();\n int columnsNumber resultSetMetaData.getColumnCount();\n int count 0;\n while (resultSet.next()) {\n count++;\n for (int i 1; i \u003c columnsNumber; i++) {\n if (i \u003e 1) {\n System.out.print(\, \);\n }\n String columnValue resultSet.getString(i);\n System.out.print(resultSetMetaData.getColumnName(i) + \: \ + columnValue);\n }\n System.out.println(\\);\n }\n System.out.println(\There are \ + count + \ records.\);\n\n String insertSql \INSERT INTO employees (first_name, last_name) \\n + \VALUES (Person \ + count + \, Java)\;\n System.out.println(\Running SQL: \ + insertSql);\n statement.executeUpdate(insertSql);\n\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n}\n,name:jdbc_postgresql}},name:java},javascript:{sample_template_project_slug:react,default_path:/tmp/project/main.js,language_client_id:javascript,display:JavaScript,version:NodeJS v20.15.0,tab_size:2,mode:javascript,category:interpreted,execution:true,custom_file_allowed:true,test_case_grading:true,database_allowed:true,autocomplete:{type:legacy},line_comment_token://,block_comment_tokens:/*,*/,example:const _ require(lodash);\n\nfunction sayHello() {\n console.log(Hello, World);\n}\n\n_.times(5, sayHello);\n,packages:{sequelize_mysql:{database:mysql,display:Sequelize (MySQL),example:const Sequelize require(sequelize)\n\nasync function main() {\n try {\n // Connect to the database.\n const sequelize new Sequelize(coderpad, coderpad, , {\n dialect: mysql,\n dialectOptions: { socketPath: /tmp/mysql/socket/mysqld.sock },\n })\n await sequelize.authenticate()\n\n const Employee sequelize.define(employee, {\n id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true },\n first_name: { type: Sequelize.STRING },\n last_name: { type: Sequelize.STRING },\n salary: { type: Sequelize.INTEGER },\n department_id: { type: Sequelize.INTEGER },\n }, {\n timestamps: false\n })\n\n // Find existing records.\n const employees await Employee.findAll()\n const count employees.length\n console.log(`There are ${count} records:`)\n for (let employee of employees) {\n console.log( , JSON.stringify(employee))\n }\n\n // Insert a new record.\n const employeeAttrs {\n first_name: `Person ${count}`,\n last_name: JavaScript,\n }\n console.log(`Inserting new record: ${JSON.stringify(employeeAttrs)}`)\n const newPerson Employee.build(employeeAttrs)\n await newPerson.save()\n\n // Run raw SQL to fetch the last record.\n const sqlResult, _metadata await sequelize.query(`SELECT * FROM employees ORDER BY id DESC LIMIT 1`)\n console.log(`The last record is: ${JSON.stringify(sqlResult)}`)\n\n } catch (error) {\n console.error(Error: , error)\n }\n}\nmain()\n,name:sequelize_mysql},sequelize_postgresql:{database:postgresql,display:Sequelize (Postgres),example:const Sequelize require(sequelize)\n\nasync function main() {\n try {\n // Connect to the database.\n const sequelize new Sequelize(coderpad, coderpad, , {\n dialect: postgres,\n host: /tmp/postgresql/socket,\n })\n await sequelize.authenticate()\n\n const Employee sequelize.define(employee, {\n id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true },\n first_name: { type: Sequelize.STRING },\n last_name: { type: Sequelize.STRING },\n salary: { type: Sequelize.INTEGER },\n department_id: { type: Sequelize.INTEGER },\n }, {\n timestamps: false\n })\n\n // Find existing records.\n const employees await Employee.findAll()\n const count employees.length\n console.log(`There are ${count} records:`)\n for (let employee of employees) {\n console.log( , JSON.stringify(employee))\n }\n\n // Insert a new record.\n const employeeAttrs {\n first_name: `Person ${count}`,\n last_name: JavaScript,\n }\n console.log(`Inserting new record: ${JSON.stringify(employeeAttrs)}`)\n const newPerson Employee.build(employeeAttrs)\n await newPerson.save()\n\n // Run raw SQL to fetch the last record.\n const sqlResult, _metadata await sequelize.query(`SELECT * FROM employees ORDER BY id DESC LIMIT 1`)\n console.log(`The last record is: ${JSON.stringify(sqlResult)}`)\n\n } catch (error) {\n console.error(Error: , error)\n }\n}\nmain()\n,name:sequelize_postgresql},typeorm_mysql:{database:mysql,display:TypeORM (MySQL),example:const typeorm require(typeorm)\n\n// Define entity for an existing table.\nconst employeesEntity new typeorm.EntitySchema({\n name: Employees,\n columns: {\n id: { primary: true, type: int, generated: true },\n first_name: { type: varchar },\n last_name: { type: varchar },\n salary: { type: int },\n department_id: { type: int },\n }\n})\n\nasync function main() {\n try {\n // Connect to the database.\n const connection typeorm.getConnectionManager().create({\n type: mysql,\n username: coderpad,\n database: coderpad,\n synchronize: false, // Preserve columns of existing tables.\n extra: { socketPath: /tmp/mysql/socket/mysqld.sock },\n entities: employeesEntity \n })\n await connection.connect()\n const repository connection.getRepository(Employees)\n const manager connection.manager\n\n // Find existing records.\n const employees await repository.find()\n const count employees.length\n console.log(`There are ${count} records:`)\n for (let employee of employees) {\n console.log(JSON.stringify(employee))\n }\n\n // Insert a new record.\n const employeeAttrs {\n first_name: `Person ${count}`,\n last_name: JavaScript,\n }\n console.log(`Inserting new record: ${JSON.stringify(employeeAttrs)}`)\n await connection\n .createQueryBuilder()\n .insert()\n .into(employeesEntity)\n .values( employeeAttrs )\n .execute()\n\n // Run raw SQL to fetch the last record.\n const sqlResult await manager.query(`SELECT * FROM employees ORDER BY id DESC LIMIT 1`)\n console.log(`The last record is: ${JSON.stringify(sqlResult)}`)\n\n } catch (error) {\n console.error(Error: , error)\n }\n}\nmain()\n,name:typeorm_mysql},typeorm_postgresql:{database:postgresql,display:TypeORM (Postgres),example:const typeorm require(typeorm)\n\n// Define entity for an existing table.\nconst employeesEntity new typeorm.EntitySchema({\n name: Employees,\n columns: {\n id: { primary: true, type: int, generated: true },\n first_name: { type: varchar },\n last_name: { type: varchar },\n salary: { type: int },\n department_id: { type: int },\n }\n})\n\nasync function main() {\n try {\n // Connect to the database.\n const connection typeorm.getConnectionManager().create({\n type: postgres,\n username: coderpad,\n database: coderpad,\n synchronize: false, // Preserve columns of existing tables.\n extra: { host: /tmp/postgresql/socket },\n entities: employeesEntity \n })\n await connection.connect()\n const repository connection.getRepository(Employees)\n const manager connection.manager\n\n // Find existing records.\n const employees await repository.find()\n const count employees.length\n console.log(`There are ${count} records:`)\n for (let employee of employees) {\n console.log(JSON.stringify(employee))\n }\n\n // Insert a new record.\n const employeeAttrs {\n first_name: `Person ${count}`,\n last_name: JavaScript,\n }\n console.log(`Inserting new record: ${JSON.stringify(employeeAttrs)}`)\n await connection\n .createQueryBuilder()\n .insert()\n .into(employeesEntity)\n .values( employeeAttrs )\n .execute()\n\n // Run raw SQL to fetch the last record.\n const sqlResult await manager.query(`SELECT * FROM employees ORDER BY id DESC LIMIT 1`)\n console.log(`The last record is: ${JSON.stringify(sqlResult)}`)\n\n } catch (error) {\n console.error(Error: , error)\n }\n}\nmain()\n,name:typeorm_postgresql}},name:javascript},julia:{default_path:/tmp/project/main.jl,display:Julia,version:1.8.5,tab_size:4,mode:text/x-julia,category:interpreted,execution:true,custom_file_allowed:true,line_comment_token:#,block_comment_tokens:#,#,example:function say_hello()\n println(\Hello, World!\)\nend\n\nsay_hello()\n,name:julia},kotlin:{default_path:/tmp/project/src/main/kotlin/Main.kt,language_client_id:kotlin,display:Kotlin,version:Kotlin 1.9,tab_size:2,mode:text/x-kotlin,category:compiled,execution:true,custom_file_allowed:true,autocomplete:{type:lsp},line_comment_token://,block_comment_tokens:/*,*/,example:import java.io.*;\nimport java.util.*;\n\n// To execute Kotlin code, please define a top level function named main\n\nfun main() {\n for (i in 1..5) println(\Hello, World!\)\n}\n,name:kotlin},lua:{default_path:/tmp/project/main.lua,display:Lua,version:5.4.4,tab_size:2,mode:text/x-lua,category:interpreted,execution:true,custom_file_allowed:true,line_comment_token:--,block_comment_tokens:--,--,example:function say_hello()\n print(\Hello, World!\)\nend\n\nsay_hello()\n,name:lua},markdown:{default_path:/tmp/project/main.md,display:Markdown,version:marked.js 0.4,tab_size:2,mode:gfm,category:documentation,execution:true,custom_file_allowed:true,block_comment_tokens:\u003c!--,--\u003e,example:CoderPad + Markdown\n\n\nWelcome to a real-time collaborative Markdown1 editor.\n\nIn addition to all the usual Markdown features, it uses\nGithub-Flavored Markdown2, except with breaks on newlines\ndisabled.\n\nArbitrary HTML input is disabled, for obvious security reasons,\nand \smart\ quotes are enabled.\n\nWe also support code fencing, through either backticks or\nindentation.\n\n```javascript\nfunction hello() {\n var s \Hi there!\;\n console.log(s);\n}\n```\n\n1: http://daringfireball.net/projects/markdown/\n2: https://help.github.com/articles/github-flavored-markdown\n,name:markdown},mysql:{default_path:/tmp/project/main_mysql.sql,language_client_id:mysql,display:MySQL,version:MySQL Server 8.0,tab_size:2,mode:text/x-mysql,category:data,execution:true,custom_database:true,database_allowed:true,line_comment_token:--,block_comment_tokens:/*,*/,example:/*\nCoderPad provides a basic SQL sandbox with the following schema.\nYou can also use commands like `show tables` and `desc employees`\n\nemployees projects\n+---------------+---------+ +---------------+---------+\n| id | int |\u003c----+ +-\u003e| id | int |\n| first_name | varchar | | | | title | varchar |\n| last_name | varchar | | | | start_date | date |\n| salary | int | | | | end_date | date |\n| department_id | int |--+ | | | budget | int |\n+---------------+---------+ | | | +---------------+---------+\n | | |\ndepartments | | | employees_projects\n+---------------+---------+ | | | +---------------+---------+\n| id | int |\u003c-+ | +--| project_id | int |\n| name | varchar | +-----| employee_id | int |\n+---------------+---------+ +---------------+---------+\n*/\n\nSELECT e.first_name, e.last_name, e.salary,\n d.name as department_name\nFROM employees AS e\nJOIN departments AS d ON e.department_id d.id;\n,name:mysql},objc:{default_path:/tmp/project/main.m,language_client_id:objective-c,display:Objective-C,version:Clang 14 with GNUstep and libobjc2,tab_size:2,mode:text/x-objectivec,category:compiled,execution:true,custom_file_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:#import \u003cFoundation/Foundation.h\u003e\n#import \u003cstdio.h\u003e\n\nint main (int argc, const char * argv)\n{\n @autoreleasepool {\n NSString* hello @\Hello, World!\;\n for (int i 1; i \u003c 5; i++) {\n printf(\%s #%d\\n\, hello UTF8String, i);\n }\n }\n}\n,name:objc},ocaml:{default_path:/tmp/project/main.ml,language_client_id:ocaml,display:OCaml,version:OCaml 5.0.0,tab_size:2,mode:text/x-ocaml,category:compiled,block_comment_tokens:(*,*),execution:true,custom_file_allowed:true,example:let rec sayHello n \n match n with\n | 0 -\u003e ()\n | _ -\u003e print_endline \Hello, World!\; sayHello (n-1);;\n\nsayHello 5;;\n,name:ocaml},perl:{default_path:/tmp/project/main.pl,display:Perl,version:Perl 5.40,tab_size:2,mode:perl,category:interpreted,execution:true,custom_file_allowed:true,line_comment_token:#,example:use strict;\nuse warnings;\nuse Data::Dumper;\n\nfor (my $count 5; $count \u003e 1; $count--) {\n print \Hello, World #$count\\n\;\n}\n,name:perl},php:{default_path:/tmp/project/main.php,language_client_id:php-serenata,display:PHP,version:Zend PHP 8.2,tab_size:2,mode:php,category:interpreted,execution:true,custom_file_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:\u003c?php\n\n // php code is wrapped in \u003c?php tags\n\n for ( $i 0; $i \u003c 5; $i++) {\n echo \Hello, World\\n\;\n }\n?\u003e\n,name:php},plaintext:{default_path:/tmp/project/main.txt,display:Plain Text,tab_size:2,mode:text/plain,category:documentation,custom_file_allowed:true,example:This is just a simple shared plaintext pad, with no execution capabilities.\n\nWhen you know what language youd like to use for your interview,\nsimply choose it from the dots menu on the tab, or add a new language\ntab using the Languages button on the left.\n\nYou can also change the default language your pads are created with\nin your account settings: https://app.coderpad.io/settings\n\nEnjoy your interview!\n,name:plaintext},postgresql:{default_path:/tmp/project/main_postgres.sql,monaco_language:postgres,language_client_id:postgresql,display:PostgreSQL,version:PostgreSQL 12.4,tab_size:2,mode:text/x-pgsql,category:data,execution:true,custom_database:true,database_allowed:true,line_comment_token:--,block_comment_tokens:/*,*/,example:/*\nCoderPad provides a basic SQL sandbox with the following schema.\nYou can also use commands like \\dt; and \\d employees;\n\nemployees projects\n+---------------+---------+ +---------------+---------+\n| id | int |\u003c----+ +-\u003e| id | int |\n| first_name | varchar | | | | title | varchar |\n| last_name | varchar | | | | start_date | date |\n| salary | int | | | | end_date | date |\n| department_id | int |--+ | | | budget | int |\n+---------------+---------+ | | | +---------------+---------+\n | | |\ndepartments | | | employees_projects\n+---------------+---------+ | | | +---------------+---------+\n| id | int |\u003c-+ | +--| project_id | int |\n| name | varchar | +-----| employee_id | int |\n+---------------+---------+ +---------------+---------+\n*/\n\nSELECT e.first_name, e.last_name, e.salary,\n d.name as department_name\nFROM employees AS e\nJOIN departments AS d ON e.department_id d.id;\n,name:postgresql},powershell:{default_path:/tmp/project/main.ps1,language_client_id:powershell,display:PowerShell,version:PowerShell 7.4,gpes_language_version:7.4.0,tab_size:4,mode:application/x-powershell,category:interpreted,execution:true,line_comment_token:#,example:for ($i 1; $i -le 5; $i++) {\n Write-Host \Hello, World!\\n}\n,name:powershell},python:{default_path:/tmp/project/main_python2.py,language_client_id:python2,display:Python 2,version:CPython 2.7,tab_size:4,mode:{name:python,version:2},category:interpreted,execution:true,custom_file_allowed:true,test_case_grading:true,database_allowed:true,autocomplete:{type:lsp,diagnostics:true},line_comment_token:#,block_comment_tokens:\\\,\\\,example:def say_hello():\n print Hello, World\n\nfor i in xrange(5):\n say_hello()\n,packages:{sqlalchemy_mysql:{database:mysql,display:SQLAlchemy (MySQL),example:import sqlalchemy\nfrom sqlalchemy.orm import sessionmaker\n\n# Connect to the DB and reflect metadata.\nengine sqlalchemy.create_engine(mysql://coderpad:@/coderpad?unix_socket/tmp/mysql/socket/mysqld.sock)\nconnection engine.connect()\nSession sessionmaker(bindengine)\nsession Session()\nmetadata sqlalchemy.MetaData()\nmetadata.reflect(bindengine)\nemployees_table metadata.tablesemployees\n\n# Get existing records.\ncount session.query(employees_table).count()\nprint(There are %s employees: % count)\nemployees session.query(employees_table).all()\nfor employee in employees:\n print(employee)\n\n# Insert a record.\nattrs {first_name: (Person %s % (count + 1)), last_name: Python}\nprint(Inserting new record: %s % attrs)\nconnection.execute(employees_table.insert().values(attrs))\n\n# Run raw SQL.\nresult connection.execute(SELECT * FROM employees ORDER BY id DESC LIMIT 1)\nresult_as_list result.fetchall()\nprint(The last record is: %s % result_as_list0)\n,name:sqlalchemy_mysql},sqlalchemy_postgresql:{database:postgresql,display:SQLAlchemy (Postgres),example:import sqlalchemy\nfrom sqlalchemy.orm import sessionmaker\n\n# Connect to the DB and reflect metadata.\nengine sqlalchemy.create_engine(postgresql://coderpad:@/coderpad?host/tmp/postgresql/socket)\nconnection engine.connect()\nSession sessionmaker(bindengine)\nsession Session()\nmetadata sqlalchemy.MetaData()\nmetadata.reflect(bindengine)\nemployees_table metadata.tablesemployees\n\n# Get existing records.\ncount session.query(employees_table).count()\nprint(There are %s employees: % count)\nemployees session.query(employees_table).all()\nfor employee in employees:\n print(employee)\n\n# Insert a record.\nattrs {first_name: (Person %s % (count + 1)), last_name: Python}\nprint(Inserting new record: %s % attrs)\nconnection.execute(employees_table.insert().values(attrs))\n\n# Run raw SQL.\nresult connection.execute(SELECT * FROM employees ORDER BY id DESC LIMIT 1)\nresult_as_list result.fetchall()\nprint(The last record is: %s % result_as_list0)\n,name:sqlalchemy_postgresql}},name:python},python3:{default_path:/tmp/project/main.py,language_client_id:python,display:Python 3,version:CPython 3.10,tab_size:4,mode:{name:python,version:3},category:interpreted,execution:true,custom_file_allowed:true,test_case_grading:true,database_allowed:true,autocomplete:{type:lsp,diagnostics:true},line_comment_token:#,block_comment_tokens:\\\,\\\,example:def say_hello():\n print(Hello, World)\n\nfor i in range(5):\n say_hello()\n,packages:{sqlalchemy_mysql:{database:mysql,display:SQLAlchemy (MySQL),example:import sqlalchemy\nfrom sqlalchemy.orm import sessionmaker\n\n# Connect to the DB and reflect metadata.\nengine sqlalchemy.create_engine(mysql://coderpad:@/coderpad?unix_socket/tmp/mysql/socket/mysqld.sock)\nconnection engine.connect()\nSession sessionmaker(bindengine)\nsession Session()\nmetadata sqlalchemy.MetaData()\nmetadata.reflect(bindengine)\nemployees_table metadata.tablesemployees\n\n# Get existing records.\ncount session.query(employees_table).count()\nprint(There are %s employees: % count)\nemployees session.query(employees_table).all()\nfor employee in employees:\n print(employee)\n\n# Insert a record.\nattrs {first_name: (Person %s % (count + 1)), last_name: Python}\nprint(Inserting new record: %s % attrs)\nconnection.execute(employees_table.insert().values(attrs))\n\n# Run raw SQL.\nresult connection.execute(SELECT * FROM employees ORDER BY id DESC LIMIT 1)\nresult_as_list result.fetchall()\nprint(The last record is: %s % result_as_list0)\n,name:sqlalchemy_mysql},sqlalchemy_postgresql:{database:postgresql,display:SQLAlchemy (Postgres),example:import sqlalchemy\nfrom sqlalchemy.orm import sessionmaker\n\n# Connect to the DB and reflect metadata.\nengine sqlalchemy.create_engine(postgresql://coderpad:@/coderpad?host/tmp/postgresql/socket)\nconnection engine.connect()\nSession sessionmaker(bindengine)\nsession Session()\nmetadata sqlalchemy.MetaData()\nmetadata.reflect(bindengine)\nemployees_table metadata.tablesemployees\n\n# Get existing records.\ncount session.query(employees_table).count()\nprint(There are %s employees: % count)\nemployees session.query(employees_table).all()\nfor employee in employees:\n print(employee)\n\n# Insert a record.\nattrs {first_name: (Person %s % (count + 1)), last_name: Python}\nprint(Inserting new record: %s % attrs)\nconnection.execute(employees_table.insert().values(attrs))\n\n# Run raw SQL.\nresult connection.execute(SELECT * FROM employees ORDER BY id DESC LIMIT 1)\nresult_as_list result.fetchall()\nprint(The last record is: %s % result_as_list0)\n,name:sqlalchemy_postgresql}},name:python3},r:{default_path:/tmp/project/main.r,language_client_id:r,display:R,version:R 4.3,tab_size:2,mode:r,category:interpreted,execution:true,custom_file_allowed:true,line_comment_token:#,example:for(i in 1:5) {\n print(paste(\Hello, World:\, i))\n}\n,name:r},ruby:{default_path:/tmp/project/main.rb,language_client_id:ruby,display:Ruby,version:MRI 3.2,tab_size:2,mode:ruby,category:interpreted,line_comment_token:#,execution:true,custom_file_allowed:true,test_case_grading:true,database_allowed:true,autocomplete:{type:lsp,diagnostics:true},example:def say_hello\n puts Hello, World\nend\n\n5.times { say_hello }\n,packages:{active_record_mysql:{database:mysql,display:ActiveRecord (MySQL),example:require active_record\n\nActiveRecord::Base.establish_connection(\n adapter: mysql2,\n socket: /tmp/mysql/socket/mysqld.sock,\n username: coderpad,\n password: ,\n database: coderpad\n)\n\n# Define a class of an existing table.\nclass Employee \u003c ActiveRecord::Base; end\n\n# Get existing records.\ncount Employee.count\nputs \There are #{count} employees:\\nEmployee.find_each do |employee|\n puts employee.inspect\nend\n\n# Insert a new record.\nattrs { first_name: \Person #{count + 1}\, last_name: \Ruby\ }\nputs \Inserting new record: #{attrs}\\nEmployee.create!(attrs)\n\n# Run raw SQL.\nresult ActiveRecord::Base.connection.execute(\SELECT * FROM employees ORDER BY id DESC LIMIT 1\)\nputs \The last record is: #{result.first()}\\n,name:active_record_mysql},active_record_postgresql:{database:postgresql,display:ActiveRecord (Postgres),example:require active_record\n\nActiveRecord::Base.establish_connection(\n adapter: postgresql,\n host: /tmp/postgresql/socket,\n username: coderpad,\n password: ,\n database: coderpad\n)\n\n# Define a class of an existing table.\nclass Employee \u003c ActiveRecord::Base; end\n\n# Get existing records.\ncount Employee.count\nputs \There are #{count} employees:\\nEmployee.find_each do |employee|\n puts employee.inspect\nend\n\n# Insert a new record.\nattrs { first_name: \Person #{count + 1}\, last_name: \Ruby\ }\nputs \Inserting new record: #{attrs}\\nEmployee.create!(attrs)\n\n# Run raw SQL.\nresult ActiveRecord::Base.connection.execute(\SELECT * FROM employees ORDER BY id DESC LIMIT 1\)\nputs \The last record is: #{result.first()}\\n,name:active_record_postgresql},sequel_mysql:{database:mysql,display:Sequel (MySQL),example:require sequel\n\nDB Sequel.connect(\n adapter: mysql2,\n socket: /tmp/mysql/socket/mysqld.sock,\n user: coderpad,\n password: ,\n database: coderpad\n)\n\nemployees DB:employees\n\n# Fetch current records.\ncount employees.count\nputs \There are #{count} employees:\\nemployees.all.each do |employee|\n puts employee.inspect\nend\n\n# Insert a new record.\nnew_attrs { first_name: \Person #{count + 1}\, last_name: \Ruby\ }\nputs \Inserting new record: #{new_attrs}\\nemployees.insert(new_attrs)\n\n# Run raw SQL.\nresult DB.fetch(\SELECT * FROM employees ORDER BY id DESC LIMIT 1\)\nputs \The last record is: #{result.first()}\\n,name:sequel_mysql},sequel_postgresql:{database:postgresql,display:Sequel (Postgres),example:require sequel\n\nDB Sequel.connect(\n adapter: postgres,\n host: /tmp/postgresql/socket,\n user: coderpad,\n password: ,\n database: coderpad\n)\n\nemployees DB:employees\n\n# Fetch current records.\ncount employees.count\nputs \There are #{count} employees:\\nemployees.all.each do |employee|\n puts employee.inspect\nend\n\n# Insert a new record.\nnew_attrs { first_name: \Person #{count + 1}\, last_name: \Ruby\ }\nputs \Inserting new record: #{new_attrs}\\nemployees.insert(new_attrs)\n\n# Run raw SQL.\nresult DB.fetch(\SELECT * FROM employees ORDER BY id DESC LIMIT 1\)\nputs \The last record is: #{result.first()}\\n,name:sequel_postgresql}},name:ruby},rust:{default_path:/tmp/project/main.rs,language_client_id:rust,display:Rust,version:Rust 1.72.0 (2021 Edition),tab_size:4,mode:text/x-rustsrc,category:compiled,execution:true,custom_file_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:fn main() {\n for n in 0..5 {\n println!(\{} - Hello, World!\, n);\n }\n}\n,name:rust},scala:{default_path:/tmp/project/src/main/scala/Main.scala,language_client_id:scala,display:Scala,version:Scala 3.3.0,tab_size:2,mode:text/x-scala,category:compiled,execution:true,custom_file_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:// To execute Scala code, please define an object named Solution that extends App\n\nobject Solution extends App {\n for (i \u003c- 0 until 5) println(\Hello, World!\)\n}\n,name:scala},solidity:{default_path:/tmp/project/contract.sol,display:Solidity,version:0.8.19,tab_size:2,mode:text/x-solidity,category:compiled,execution:true,custom_file_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:// SPDX-License-Identifier: MIT\npragma solidity ^0.8.19;\n\ncontract HelloWorld {\n string public greet \Hello World!\;\n}\n,name:solidity},swift:{default_path:/tmp/project/Sources/project/main.swift,language_client_id:swift,display:Swift 5,version:Swift 5.9,tab_size:2,mode:text/x-swift,category:compiled,execution:true,custom_file_allowed:true,autocomplete:{type:legacy,diagnostics:true},line_comment_token://,block_comment_tokens:/*,*/,example:import Foundation\n\nfor _ in 1...5 {\n print(\Hello, World!\)\n}\n,name:swift},tcl:{default_path:/tmp/project/main.tcl,display:Tcl,version:Tcl 8.6,tab_size:2,mode:text/x-tcl,category:interpreted,execution:true,custom_file_allowed:true,line_comment_token:#,example:set i 0\nwhile {$i \u003c 5} {\n puts \Hello, World!\\n incr i\n}\n,name:tcl},typescript:{sample_template_project_slug:react,default_path:/tmp/project/main.ts,language_client_id:typescript,display:TypeScript,version:TypeScript v5 under Node.js v20,tab_size:2,mode:text/typescript,category:interpreted,execution:true,custom_file_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:const _ require(lodash);\n\nclass Greeter {\n greeting: string;\n constructor(message: string) {\n this.greeting message;\n }\n greet() {\n return \Hello, \ + this.greeting;\n }\n}\n\nlet greeter new Greeter(\world\);\n\n_.times(4, () \u003e console.log(greeter.greet()));\n,name:typescript},vb:{default_path:/tmp/project/main.vb,display:Visual Basic,version:.NET Core 8.0,tab_size:4,mode:text/x-vb,category:compiled,execution:true,custom_file_allowed:true,line_comment_token:,example: To run VB.net code, please define a \Sub Main\\n on the top level Module\n\nModule Solution\n Sub Main()\n Console.WriteLine (\Hello, World\)\n End Sub\nEnd Module\n,name:vb},verilog:{default_path:/tmp/project/main.v,language_client_id:verilog,display:Verilog,version:Icarus Verilog 11.0,tab_size:2,mode:text/x-verilog,category:compiled,execution:true,custom_file_allowed:true,line_comment_token://,block_comment_tokens:/*,*/,example:module main;\n\ninitial begin\n repeat (5) begin\n $display(\Hello, World!\);\n end\n $finish;\nend\n\nendmodule\n,name:verilog}} window.CoderPad.PLANS {id:0,title:Free Plan,user_account_limit:1,monthly_price:0},{id:17,title:Team Plan,user_account_limit:20,monthly_price:375},{id:18,title:Business Plan,user_account_limit:50,monthly_price:850},{id:19,title:Starter Plan,user_account_limit:50,monthly_price:100},{id:60,title:Starter Annual,user_account_limit:20,monthly_price:70},{id:65,title:Team Annual,user_account_limit:20,monthly_price:375},{id:66,title:Business Annual,user_account_limit:50,monthly_price:850},{id:101,title:Enterprise,user_account_limit:0,monthly_price:0} window.CoderPad.USER window.CoderPad.USER || {}; window.CoderPad.CODINGAME_BASE_URL https://screen.coderpad.io/work; window.CoderPad.CODINGAME_LEGACY_SSO_BASE_URL https://screen.coderpad.io/work/; window.CoderPad.FULLSTORY_ORG_ID RS2RJ; /script> link relstylesheet hrefhttps://fonts.googleapis.com/css?familyOpen+Sans> link relstylesheet hrefhttps://fonts.googleapis.com/css?familyRaleway>/head>body classlogin> noscript>iframe srchttps://www.googletagmanager.com/ns.html?idGTM-WXZCKC8 height0 width0 styledisplay:none;visibility:hidden>/iframe>/noscript> div> div classloginContainer> div classloginHeader> a hrefhttps://coderpad.io/>img altCoderpad logo classloginLogo srchttps://d1a7p14oqam61r.cloudfront.net/assets/coderpad_logo_2020-c48c9570250715de10a556d7e3c4314bb1b7ed67686485de9ccd57f685874d8c.svg />/a> /div> div classloginBody> p classloginParagraph> Your organization only supports logging into CoderPad through your SAML single sign on provider. Click the button below to sign in! /p> a classloginButton hrefhttps://app.coderpad.io/saml/init?issuerhttp%3A%2F%2Fwww.okta.com%2Fexk1hxtwiefdJBuR7697>Sign into Block/a> p classloginParagraph> Not trying to login through Block?br> Try our a hrefhttps://app.coderpad.io/login>normal login page/a>. /p> /div>/div>/div> script> /script> script> window.CP_APP_NOTICE window.CP_APP_ERRORS /script> script srchttps://d1a7p14oqam61r.cloudfront.net/packs/runtime~main-51c58384ea1cb1b25ea4.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~checkout~confirmation~dashboard~home~login~main~onboarding~post_sso~registration~replay~unlock~waiting_room-b80f0be54cf9353de3f1.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~checkout~confirmation~dashboard~login~main~onboarding~post_sso~registration~replay~unlock~waiting_room~zoom_room-6f66358a17367261d520.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~checkout~confirmation~dashboard~login~main~onboarding~registration~replay~unlock~waiting_room~zoom_room-d121ad511b8cc26df746.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~checkout~confirmation~dashboard~login~main~onboarding~post_sso~registration~replay~unlock~waiting_room-65e59204857d1785e4c0.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~checkout~confirmation~dashboard~login~main~onboarding~post_sso~registration~replay~unlock-3fbf823906e31ad968de.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~checkout~confirmation~dashboard~login~main~onboarding~registration~replay~unlock~waiting_room-94d6f8996952f78cdb3d.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~checkout~confirmation~dashboard~login~main~onboarding~registration~unlock~waiting_room~zoom_room-be4b234f8ff72dd0cb60.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~checkout~dashboard~login~main~onboarding~registration~waiting_room-0567dc56dc941500a75d.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~dashboard~main~onboarding~replay~waiting_room-bf5a757b78dee8f16ff5.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~checkout~dashboard~main~onboarding~registration-012c1eeb6f74c7761288.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~main~onboarding~replay~waiting_room-1e258887337f54cf46e2.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~dashboard~main~onboarding~waiting_room-1a22be65a59a0ac4adf7.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~dashboard~main~onboarding-6b9f38e2542b7de79551.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~dashboard~main~replay-5f936e46b57b69e15ec6.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~dashboard~main~waiting_room-38c05ca2430ef2207afd.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~checkout~main~onboarding-ceba35ef6197a1d28bfd.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~checkout~dashboard~main-a0c25e949eefae4ebfa3.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~dashboard~main-17422413c2f4b9f2185f.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~main~zoom_room-7d65b7f5ea02d342109a.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~main~post_sso-5fc2802a1141d4c8f85e.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/vendors~main-b8f212acb39e2731859d.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/dashboard~main~onboarding-a585e63f00778d15d1dc.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/dashboard~main-7c86299c09caaff27d34.js deferdefer>/script>script srchttps://d1a7p14oqam61r.cloudfront.net/packs/main-6b94d81bfc86bc6a7e9b.js deferdefer>/script> /body>/html>
View on OTX
|
View on ThreatMiner
Please enable JavaScript to view the
comments powered by Disqus.
Data with thanks to
AlienVault OTX
,
VirusTotal
,
Malwr
and
others
. [
Sitemap
]