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
A little lib i made for a friend of mine. | |
Include dynamic-images.css | |
Include dynamic-images.js | |
Create the dynamic-images.json on your server ( see the format ) | |
Include setup-dynamic-images.js | |
Point url to dynamic-images.json that you created on your server. |
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
Request your API key here | |
http://imageshack.us/api_request/ | |
For more information please visist | |
https://docs.google.com/document/d/16M3qaw27vgwuwXqExo0aIC0nni42OOuWu_OGvpYl7dE/pub |
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
angular.module('moduleName') | |
.directive('ngEnter', function () { | |
return { | |
scope: { | |
ngEnter: '&' | |
}, | |
link: function ($scope, $element) { | |
$element.bind("keydown keypress", function (event) { | |
if (event.which === 13) { | |
$scope.ngEnter(); |
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
public class LanguageComponent | |
{ | |
App _next; | |
//sv-SE | |
string fallback = ConfigurationManager.AppSettings["language"]; | |
//sv-SE,en-EN etc | |
string[] accepted = ConfigurationManager.AppSettings["accepted-languages"].Split(','); | |
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
angular.module('model').factory('httpMiddletier', | |
function ($q, $rootScope) { | |
return { | |
request: function (config) { | |
$rootScope.loading = true; | |
return config || $q.when(config); | |
}, | |
requestError: function (rejection) { | |
$rootScope.loading = false; |
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
public partial class Startup | |
{ | |
public void ConfigureOAuth(IAppBuilder app) | |
{ | |
OAuthAuthorizationServerOptions OAuthServerOptions = new OAuthAuthorizationServerOptions() | |
{ | |
#if DEBUG | |
AllowInsecureHttp = true, | |
#else |
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
# This is a sample build configuration for Javascript (Node.js). | |
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: node:7.8.0 | |
pipelines: | |
default: | |
- step: |
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
//Http wrapper | |
export const post$ = (path, model) => { | |
return defer(() => { | |
let headers = { | |
'Accept': 'application/json', | |
'Content-Type': 'application/json' | |
}; | |
let accessToken = storage.get().accessToken |
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
Get-Content "auth.config" | foreach-object -begin {$h=@{}} -process { | |
$k = [regex]::split($_,'='); | |
if(($k[0].CompareTo("") -ne 0) -and ($k[0].StartsWith("[") -ne $True)) { | |
$h.Add($k[0], $k[1]) | |
} | |
} | |
$username = $h.Get_Item("Username") | |
$password = $h.Get_Item("Password") | |
$apiVersion = "6.0" |
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
Get-Content "auth.config" | foreach-object -begin {$h=@{}} -process { | |
$k = [regex]::split($_,'='); | |
if(($k[0].CompareTo("") -ne 0) -and ($k[0].StartsWith("[") -ne $True)) { | |
$h.Add($k[0], $k[1]) | |
} | |
} | |
$username = $h.Get_Item("Username") | |
$password = $h.Get_Item("Password") | |
$apiVersion = "7.0" |