A curated list of AngularJS modules and tools
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
# The "query" configuration is adapted from this gist: https://gist.github.com/techniq/4609063 | |
.directive 'remoteSelectPlugin', ['$http', ($http) -> | |
{ | |
restrict: 'A' | |
link: (scope, elem, attr) -> | |
angular.element(elem).select2({ | |
placeholder: attr.remoteSelectPlugin | |
minimumInputLength: 1 | |
query: (options) -> |
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 StringParsingNeedsToBeSimpler | |
{ | |
public void HereAreSomeExamples() | |
{ | |
//You know what sucks? | |
string value = "123"; | |
int outt; | |
if(!int.TryParse(value, out outt)) | |
{ | |
outt = 12345; // my default! |
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
using Sprache; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace lambda_calc | |
{ | |
abstract class Statement { } | |
abstract class Expr : Statement |
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
function Execute-CommandString{ | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory=$true,Position=0,ValueFromPipeline=$true)] | |
[string[]]$command, | |
[switch] | |
$ignoreExitCode | |
) |
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
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<meta http-equiv='X-UA-Compatible' content='IE=edge' /> | |
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/> | |
<style> | |
.dennisseah-orgchart .node { | |
cursor: pointer; | |
} |
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
################################################## | |
# | |
################################################## | |
param( | |
[Parameter(Mandatory = $true)][String]$subscriptionId, | |
[Parameter(Mandatory = $true)][String]$storageAccountName, | |
[Parameter(Mandatory = $true)][String]$affinityGroupName, | |
[Parameter(Mandatory = $true)][String]$imageName = 'MSFT__Windows-Server-2012-Datacenter-201208.01-en.us-30GB.vhd', | |
[Parameter(Mandatory = $true)][String]$adminPassword, |
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
# PS: | |
# - Extract your own kaskus oauth consumer_key & consumer_secret frm native app. Ref: http://seriot.ch/abusing_twitter_api.php#3 | |
# - No public doc found, but here i attach an api sample sniffed from mitmproxy | |
import urllib, urllib2 | |
import time | |
import oauth.oauth as oauth | |
import string | |
import random | |
import sys, json |
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.views.MyWizard = Backbone.Views.extend({ | |
initialize: function() { | |
_.bindAll(this, 'render', 'wizardMethod'); | |
} | |
render: function() { | |
this.wizardMethod(); | |
return this; | |
}, |
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
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Text; | |
using AutoMapper; | |
using AutoMapper.Mappers; | |
namespace IronToby.Vandelay |