Skip to content

Instantly share code, notes, and snippets.

Christopher Svanefalk csvan

Block or report user

Report or block csvan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@csvan
csvan / gist:48ca3949c9ce25769731
Created Oct 27, 2015
Dynamic instantiation of AngularJS directives.
View gist:48ca3949c9ce25769731
.directive('dynamicDirective', function ($compile) {
return {
restrict: 'E',
replace: true,
scope: {
directiveName: '@',
directiveParams: '='
},
link: function ($scope, $element, $attr) {
// Dynamically construct the directive
@csvan
csvan / JSONClient
Last active Aug 29, 2015
Xamarin.Forms JSON client
View JSONClient
namespace JSONClientExample
{
public class JSONClient
{
readonly string baseUrl;
readonly HttpClient client;
public JSONClient (string baseUrl)
{
View gulsunde-trial
/**
* Created by christopher on 08/07/14.
*/
//Necessary imports
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
You can’t perform that action at this time.