Skip to content

Instantly share code, notes, and snippets.

View baskaran-md's full-sized avatar
🎯
Focusing

Baskaran Deivasigamani baskaran-md

🎯
Focusing
View GitHub Profile
@evalphobia
evalphobia / atoi_test.go
Last active February 13, 2023 16:12
golang benchmark: String and Int conversions
package bench
import (
"strconv"
"testing"
)
var smallStr = "35"
var bigStr = "999999999999999"
#================ PART - 0 - PRE-REQUISTES ================
# Install Django and Selenium
# Create a Django Project and add a package called functional_test
#================ PART - 1 - GETTING READY ================
# Step 1: Check if the server is running
from selenium import webdriver
#!/bin/bash
#
# Copyright (c) 2015, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
Step 1: Create Movie Add form
• movies.html
<form action="/movies/" method="post"> {% csrf_token %}
Movie Name: <input type="Text" name="name"> <input type="submit" value="Add">
</form>
• views.py