Skip to content

Instantly share code, notes, and snippets.

View sudarshanReddykurri's full-sized avatar

SudarshanReddy kurri sudarshanReddykurri

View GitHub Profile
## Unreal Engine ##
# UE file types
*.uasset filter=lfs diff=lfs merge=lfs -text
*.umap filter=lfs diff=lfs merge=lfs -text
*.udk filter=lfs diff=lfs merge=lfs -text
@sudarshanReddykurri
sudarshanReddykurri / xmlcode.cs
Created August 7, 2017 10:41
xml serialization and deserialisation in c#
private void Serealization()
{
// serealisation data to xml
using (Stream writer = new FileStream("Config.xml", FileMode.Create))
{
XmlSerializer serializer = new XmlSerializer(typeof(List<AppToLaunch>));
serializer.Serialize(writer, appManager);
}
}
@sudarshanReddykurri
sudarshanReddykurri / fragment_shader_tutorials.glsl
Created July 24, 2017 17:32 — forked from JBlackCat/fragment_shader_tutorials.glsl
GLSL Beginner Tutorials from ShaderToy.com
/*
by Uğur Güney. March 8, 2014.
Hi! I started learning GLSL a month ago. The speedup gained by using
GPU to draw real-time graphics amazed me. If you want to learn
how to write shaders, this tutorial written by a beginner can be
a starting place for you.
Please fix my coding errors and grammar errors. :-)
@sudarshanReddykurri
sudarshanReddykurri / FileUploader.cpp
Created May 25, 2017 11:24
Get Sever Data into UE4 :P
// Fill out your copyright notice in the Description page of Project Settings.
#include "BinaryUpload.h"
#include <string>
#include "FileUploader.h"
// Sets default values
AFileUploader::AFileUploader()
{
<form action="testfile.php" method="post" enctype="multipart/form-data" name="form1">
<input type="file" name="upload_file" id="resume">
<input type="submit" name="SubmitBtn" id="SubmitBtn" value="UPLOAD">
</form>
@sudarshanReddykurri
sudarshanReddykurri / index.html
Created September 13, 2016 13:34
Simple Glitch Effect in Pure CSS
<a href="#" class="glitch">17</a>
@sudarshanReddykurri
sudarshanReddykurri / script.js
Created September 11, 2016 07:44
Targeting Media Queries in Javascript
function mediaqueryresponse(mql){
if (mql.matches){
alert("The condition " + mql.media + " has been met");
}
else{
alert("Condition not met yet");
}
}
var mql = window.matchMedia("screen and (max-width: 480px) and (orientation: portrait)");
@sudarshanReddykurri
sudarshanReddykurri / script.js
Last active September 11, 2016 05:35
Code for on scroll background color change for the navigation in JQuery
<script>
$(document).ready(function(){
$(window).scroll(function() { // check if scroll event happened
if ($(document).scrollTop() > 50) { // check if user scrolled more than 50 from top of the browser window
$('.header').css("background-color", "#fff");// change background-color to white
} else {
$('.header').css("background-color", "#000"); // if not, change it back to black
@sudarshanReddykurri
sudarshanReddykurri / index.html
Last active September 13, 2016 13:37
Pure CSS Menu Bar & it is fully customizable
<html>
<body>
<input type="checkbox" id="sidebartoggler" name="" value="">
<div class="page-wrap">
<nav id="navbar">
<label for="sidebartoggler" class="toggle">
<div class="hamb"></div>
<div class="hamb" style=""></div>
<div class="hamb"></div>
@sudarshanReddykurri
sudarshanReddykurri / index.html
Created September 10, 2016 07:53
Fixing the issue with sup tag (Adjust the top property as per the need)
<sup style="vertical-align: top !important; position: relative;
top: 0.2em; font-size: 10px !important; ">TM</sup>