An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
| // ==UserScript== | |
| // @name elbilad.net | |
| // @namespace MyScripts | |
| // @description Autoriser la sélection du text | |
| // @include http://www.elbilad.net/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| $("#contenu *").css("-moz-user-select","text"); |
| sudo ln -s /usr/bin/nodejs /usr/bin/node | |
| source : http://stackoverflow.com/questions/18130164/nodejs-vs-node-on-ubuntu-12-04 |
| Create folder : typings/jquery | |
| Save to this folder : https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/jquery/jquery.d.ts | |
| Add first line of file.js : /// <reference path="typings/jquery/jquery.d.ts" /> | |
| source : http://stackoverflow.com/questions/29970278/visual-studio-code-jquery-suggestion | |
| If the light bulb doesn't appear, you can add the type definitions manually: | |
| Create typings\jquery folder structure within your project folder (if not exist)* |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
| // ==UserScript== | |
| // @name blog.ai3.fr | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Remove right panel , for good reading | |
| // @author k | |
| // @match https://blog.ai3.fr/* | |
| // @grant none | |
| // ==/UserScript== |
| var express = require('express'); //npm install --save express | |
| var bodyParser = require('body-parser'); //npm install --save body-parser | |
| var app = express(); | |
| // Heroes -------------------------------- | |
| var HEROES ={data : [ | |
| { id: 11, name: 'Mr. Nice' }, | |
| { id: 12, name: 'Narco' }, | |
| { id: 13, name: 'Bombasto' }, |
| <system.webServer> | |
| <httpProtocol> | |
| <customHeaders> | |
| <add name="Access-Control-Allow-Origin" value="*" /> | |
| <add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept" /> | |
| <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" /> | |
| </customHeaders> | |
| </httpProtocol> | |
| </system.webServer> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <rewrite> | |
| <rules> | |
| <rule name="AngularJS Routes" stopProcessing="true"> | |
| <match url=".*" /> | |
| <conditions logicalGrouping="MatchAll"> | |
| <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> |
| /* | |
| select * from F_SPLIT ('D2177CF0-36E0-45DB-8C4F-D47448EF7EB0,33ECA429-6AB9-4BBA-947E-5DF747E5F559' , ',' ) | |
| */ | |
| CREATE FUNCTION F_SPLIT ( @tcList VARCHAR(8000) , @tcDelimiter char(1) = ',') | |
| RETURNS @ParsedList TABLE ( idd INT IDENTITY , element VARCHAR(MAX) ) | |
| AS | |
| BEGIN |