Skip to content

Instantly share code, notes, and snippets.

View lekodeveloperweb's full-sized avatar

Alex Leko lekodeveloperweb

View GitHub Profile
@lekodeveloperweb
lekodeveloperweb / WebApiConfig.cs
Last active August 21, 2023 08:11
WebApi configuration for json newtonsoft
using System.Web.Http;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace ViVi.Api
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
@lekodeveloperweb
lekodeveloperweb / sublime-text-3-setup.md
Created January 21, 2016 16:00 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@lekodeveloperweb
lekodeveloperweb / Preferences.sublime-settings
Created January 21, 2016 16:23
User Preferences Sublime Text 3
{
"always_show_minimap_viewport": true,
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true,
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/Monokai Bright (SL).tmTheme",
"default_encoding": "UTF-8",
"detect_indentation": true,
"folder_exclude_patterns":
@lekodeveloperweb
lekodeveloperweb / Feedback.js
Created January 26, 2016 16:42 — forked from alexbeletsky/Feedback.js
Baby steps to Backbone - step 2 - Validation
var Feedback = Backbone.Model.extend({
url: '/feedback',
defaults: {
'email': '',
'website': '',
'feedback': ''
},
@lekodeveloperweb
lekodeveloperweb / install-mono.sh
Created May 9, 2016 18:14 — forked from carolynvs/install-mono.sh
Install Mono on Ubuntu
wget http://download.mono-project.com/repo/xamarin.gpg
sudo apt-key add xamarin.gpg
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee --append /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install mono-complete
sudo certmgr -ssl -m https://go.microsoft.com
sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net
sudo certmgr -ssl -m https://nuget.org
mozroots --import --sync
@lekodeveloperweb
lekodeveloperweb / Angular + Material Design Lite ( MDL ) Form Validation.markdown
Last active May 23, 2016 17:01
Angular + Material Design Lite ( MDL ) Form Validation
function Update-AssemblyInfoVersionFiles
{
Param
(
[Parameter(Mandatory=$true)]
[string]$productVersion
)
$buildNumber = $env:BUILD_BUILDNUMBER
if ($buildNumber -eq $null)
@lekodeveloperweb
lekodeveloperweb / OwinRequestExtensions.cs
Created June 28, 2016 17:34 — forked from randyburden/OwinRequestExtensions.cs
OwinRequest extensions for getting query string, form body, and header parameters as Dictionary<string,string>
/// <summary>
/// Owin Request extensions.
/// </summary>
public static class OwinRequestExtensions
{
/// <summary>
/// Gets the combined request parameters from the form body, query string, and request headers.
/// </summary>
/// <param name="request">Owin request.</param>
/// <returns>Dictionary of combined form body, query string, and request headers.</returns>
@lekodeveloperweb
lekodeveloperweb / 00.howto_install_phantomjs.md
Last active September 21, 2016 18:43 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 2.1.1

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
# lint Python modules using external checkers.
#
# This is the main checker controling the other ones and the reports
# generation. It is itself both a raw checker and an astng checker in order
# to:
# * handle message activation / deactivation at the module level
# * handle some basic but necessary stats'data (number of classes, methods...)
#
[MASTER]