Skip to content

Instantly share code, notes, and snippets.

View alexpeta's full-sized avatar
🚀
Always working

Alex Peta alexpeta

🚀
Always working
View GitHub Profile
@alexpeta
alexpeta / gist:10936441
Last active March 11, 2018 17:23
A developer's new PC install based on Chocolatey
@echo off installing the sweet goodness : Chocolatey
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
'------------------------ usual user programs ----------------------
@echo installing usual user stuff
@echo VLC player : something to watch movies with
cinst vlc
@alexpeta
alexpeta / ParseObjectMapper
Created February 25, 2014 11:33
Simple Object mapper for ParseObject objects
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class ParseObjectMemberAttribute : Attribute
{
public string Key { get; private set; }
public ParseObjectMemberAttribute() : this(null)
{
}
public ParseObjectMemberAttribute(string key = null)
@alexpeta
alexpeta / tsqlDinamicSQl.sql
Created October 7, 2012 20:20
T-SQL Execute Dynamic SQL INTO Temporary Table
BEGIN
CREATE TABLE #TempTable(ID INT null);
INSERT INTO #TempTable exec sp_executesql N'SELECT 1'
SELECT * FROM #TempTable