Simple Perl variables are called scalars
. Examples of scalar values are
$number = 123;
$string = "String";
$file_handle = open "<filename";
$null_value = undef;
$instance = MyClass->new;
Create a file named app.go
and paste following code in it:
package main
import (
"fmt"
"strconv"
"time"
)
/* | |
mkdir OrderedNumbers | |
cd ./OrderedNumbers | |
dotnet new xunit | |
*/ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Xunit; |
DECLARE @SearchText varchar(100) = '%search-text%'; | |
SELECT sm.object_id, OBJECT_NAME(sm.object_id) AS object_name, o.type, o.type_desc, sm.definition | |
FROM sys.sql_modules AS sm | |
JOIN sys.objects AS o ON sm.object_id = o.object_id | |
where sm.definition like @SearchText collate SQL_Latin1_General_CP1_CI_AS | |
ORDER BY o.type; | |
GO |
#!/bin/bash | |
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
RED='\033[0;31m' | |
GREEN='\033[1;32m' | |
YELLOW='\033[1;33m' | |
NC='\033[0m' # No Color | |
echo -e "${YELLOW}Running pre push check...${NC}" |
import numpy as np | |
def sigmoid(x): | |
return 1.0 / (1.0 + np.exp(-x)) | |
def sigmoid_prime(x): | |
return x * (1.0 - x) | |
epochs = 5000 | |
input_size, hidden_size, output_size = 2, 3, 1 |
using System; | |
using System.Linq.Expressions; | |
using System.Text; | |
namespace ExpressionValueEvaluator | |
{ | |
class Program | |
{ | |
static string Name => "Some Value (Direct Property)"; |