Skip to content

Instantly share code, notes, and snippets.

View arun-chief's full-sized avatar
😍
Happy Coding

arun prasad arun-chief

😍
Happy Coding
View GitHub Profile
@zikosw
zikosw / map.js
Created January 10, 2018 14:47
expo map marker
import React from 'react';
import { MapView } from 'expo';
export default class App extends React.Component {
render() {
return (
<MapView
style={{ flex: 1 }}
initialRegion={{
latitude: 37.78825,
@pingec
pingec / DumpHttpRequests.cs
Created November 14, 2017 20:35
C# Simple http server to dump requests to console (HttpListener)
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;
namespace DumpHttpRequests
{
internal class Program
{
@raspi
raspi / web.config EF6 Npgsql.EntityFramework example.xml
Last active May 12, 2023 18:39
Web.config example Entity Framework 6 & Npgsql.EntityFramework (PostgreSQL)
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Culture=neutral" requirePermission="false" />
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.5">
<assemblies>
@ziadoz
ziadoz / textarea-auto-height.js
Created March 29, 2012 22:42
jQuery TextArea Auto Height
$('textarea.notes').on('focus blur keyup', function() {
var paddingTop = $(this).css('padding-top').replace('px', ''),
paddingBottom = $(this).css('padding-bottom').replace('px', '');
$(this).css('height', '1px');
$(this).css('height', (this.scrollHeight - paddingTop - paddingBottom) + 'px');
}).blur();
@garyharan
garyharan / _mixins.scss
Created May 5, 2011 15:46
Useful scss mixins (rounded corners, gradients, text-field, button)
@mixin box-shadow($top, $left, $blur, $color, $inset: false) {
@if $inset {
-webkit-box-shadow:inset $top $left $blur $color;
-moz-box-shadow:inset $top $left $blur $color;
box-shadow:inset $top $left $blur $color;
} @else {
-webkit-box-shadow: $top $left $blur $color;
-moz-box-shadow: $top $left $blur $color;
box-shadow: $top $left $blur $color;
}