View gist:48ca3949c9ce25769731
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.directive('dynamicDirective', function ($compile) { | |
return { | |
restrict: 'E', | |
replace: true, | |
scope: { | |
directiveName: '@', | |
directiveParams: '=' | |
}, | |
link: function ($scope, $element, $attr) { | |
// Dynamically construct the directive |
View JSONClient
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace JSONClientExample | |
{ | |
public class JSONClient | |
{ | |
readonly string baseUrl; | |
readonly HttpClient client; | |
public JSONClient (string baseUrl) | |
{ |
View gulsunde-trial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; |