This file contains hidden or 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 = 1 | |
>>> print a | |
1 | |
>>> [a for a in range(10)] | |
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
>>> print a | |
9 |
This file contains hidden or 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
$('.like_link').filter(function(e){return $(this).attr('name') == 'like';}).each(function(i){$(this).click()}); |
This file contains hidden or 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
syn include @Coffee syntax/coffee.vim | |
syn region coffeeCode matchgroup=Snip start="{% highlight coffeescript %}" end="{% endhighlight %}" contains=@Coffee |
This file contains hidden or 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> | |
<body> | |
<div id="result"></div> | |
<script> | |
var div = document.getElementById('result'); | |
var req = new XMLHttpRequest(); | |
req.onload = function () { | |
var req2 = new XMLHttpRequest(); | |
req2.onload = function () { |
This file contains hidden or 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 AcsOAuth2; | |
namespace ConsoleApplication1 | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) { | |
var client = new ManagementService("SERVICE_NAMESPACE", "SERVICE_USERNAME", "SERVICE_USERKEY"); | |
client.UpdateIdentityRedirectAddress("Google", "http://myapp/"); | |
} |
This file contains hidden or 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.Web; | |
using System.Web.Http; | |
using System.Web.Mvc; | |
using System.Web.Optimization; | |
using System.Web.Routing; | |
using AcsOAuth2; | |
namespace MyApp | |
{ | |
public class MvcApplication : System.Web.HttpApplication |
This file contains hidden or 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 string CreateAuthorizationCode() { | |
var service = new ManagementService("SERVICE_NAMESPACE", "SERVICE_USERNAME", "SERVICE_USERKEY"); | |
var delegation = service.CreateOAuth2Delegation("SERVICE_IDENTITY_NAME", "RELYING_PARTY_NAME", "USERNAME", "IDENTITY_PROVIDER"); | |
return delegation.AuthorizationCode; | |
} |
This file contains hidden or 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 void Ping(string authorizationCode) { | |
var client = new WebClient { BaseAddress = string.Format("ACS_URL") }; | |
var values = new NameValueCollection | |
{ | |
{"code", authorizationCode}, | |
{"grant_type", "authorization_code"}, | |
{"redirect_uri", "REDIRECT_URI"}, | |
{"client_id", "SERVICE_USERNAME"}, | |
{"client_secret", "SERVICE_USERKEY"}, |
This file contains hidden or 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 Microsoft.AspNet.Builder; | |
namespace KWebStartup | |
{ | |
public class Startup | |
{ | |
public void Configure(IApplicationBuilder app) | |
{ | |
app.UseStaticFiles(); | |
app.UseWelcomePage(); |
This file contains hidden or 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
Please ask 'how-to' questions about VS Code on [Stack Overflow](https://stackoverflow.com/questions/tagged/vscode) using | |
the tag `vscode`. | |
The VS Code development team together with the VS Code Community will answer question your question over there. | |
Here is how the development team tracks feedback on the different channels: [Feedback Channels](https://github.com/Microsoft/vscode/wiki/Feedback-Channels). |
OlderNewer