Skip to content

Instantly share code, notes, and snippets.

@Aravin
Aravin / Js_Binary_to_hex.md
Last active Aug 31, 2020
Javascript Code to Convert Larger Binary Digit to Hex Code
View Js_Binary_to_hex.md

To convert large binary to hex use this code

const binaryData:=
{
    '0000': '0',
    '0001': '1',
    '0010': '2',
    '0011': '3',
@Aravin
Aravin / CSharp-HelloWorld.cs
Last active Jan 5, 2019
C# - Hello World Program
View CSharp-HelloWorld.cs
using System;
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("Hello, World!");
}
}
@Aravin
Aravin / xmlParser.ts
Last active Nov 26, 2020
Converting JSON toXML& XML to JSON in Node.js using xml2js package in TypeScript
View xmlParser.ts
import { parseString, Builder } from "xml2js";
// Convert string/XML to JSON
function toJson(xml: string) {
parseString(xml, { explicitArray: false }, function(error, result) {
console.log(result);
});
}
@Aravin
Aravin / ProtectedInternalAccessModifiedInCSharp.cs
Created Apr 12, 2018
Protected Internal Access Modified in C#
View ProtectedInternalAccessModifiedInCSharp.cs
// Code from Project 1
namespace FirstAssembly
{
public class FirstClass
{
protected internal static void FirstMethod()
{
Console.WriteLine("Private protected method called...");
}
}
@Aravin
Aravin / PrivateProtectedAccessModifiedInCSharp.cs
Last active Apr 12, 2018
Private Protected Access Modifier in CSharp C#
View PrivateProtectedAccessModifiedInCSharp.cs
// Code from Project 1
namespace FirstAssembly
{
public class FirstClass
{
private protected static void FirstMethod()
{
Console.WriteLine("Private protected method called...");
}
}
@Aravin
Aravin / FileMovement.cs
Created Mar 18, 2018
Moving file from one destination to another destination in C# using System.IO.File Class
View FileMovement.cs
using System;
using System.IO;
namespace FileMovement
{
class Program
{
static void Main(string[] args)
{
string sourcePath = @"G:\Learning\CSharp\FileMovement\FileMovement\";
@Aravin
Aravin / FileMovement.cs
Created Mar 18, 2018
Copying file from one destination to another destination in C# using System.IO.File Class
View FileMovement.cs
using System;
using System.IO;
namespace FileMovement
{
class Program
{
static void Main(string[] args)
{
string sourcePath = @"G:\Learning\CSharp\FileMovement\FileMovement\";
@Aravin
Aravin / _flash_messages.html.erb
Created Dec 10, 2017 — forked from roberto/_flash_messages.html.erb
Rails flash messages using Twitter Bootstrap
View _flash_messages.html.erb
<% flash.each do |type, message| %>
<div class="alert <%= bootstrap_class_for(type) %> fade in">
<button class="close" data-dismiss="alert">×</button>
<%= message %>
</div>
<% end %>
@Aravin
Aravin / CenteringAFormInHTML.html
Last active Nov 26, 2017
Aligning a label and textbox horizontally in HTML using CSS
View CenteringAFormInHTML.html
<!DOCTYPE html>
<html>
<head>
<title>Centering a form</title>
</head>
<body>
<div class="form">
<label>Name</label>
<input type="text" name="name">
@Aravin
Aravin / Combine Sequence Number.cs
Created Sep 17, 2017
C# Program to group the sequence of number
View Combine Sequence Number.cs
using System;
using System.Collections.Generic;
namespace CombineSequenceNumbers
{
class Program
{
static void Main(string[] args)
{
string input;
You can’t perform that action at this time.