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"); |
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
ALTER TABLE myTable | |
add createdAt datetime | |
CONSTRAINT DF_myTable_createdat DEFAULT GETDATE() | |
ALTER TABLE myTable | |
add updatedAt datetime | |
CONSTRAINT DF_myTable_updatedAt DEFAULT GETDATE() | |
go |
//Primitive Type Comparison | |
var a = 1; | |
var b = 1; | |
var c = a; | |
console.log(a == b); //true | |
console.log(a === b); //true | |
console.log(a == c); //true | |
console.log(a === c); //true |
using DocumentFormat.OpenXml.Packaging; | |
using DocumentFormat.OpenXml.Spreadsheet; | |
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ReadWriteExcelUsingOpenXml.Shared |
using DocumentFormat.OpenXml; | |
using DocumentFormat.OpenXml.Packaging; | |
using DocumentFormat.OpenXml.Spreadsheet; | |
using System.Linq; | |
namespace ExcelHelper | |
{ | |
public static class ExcelHelper | |
{ | |
public static WorksheetPart GetWorksheetPartByName(SpreadsheetDocument document, string sheetName) |
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Tue, 06 Dec 2016 17:06:46 GMT till Wed, 06 Dec 2017 17:06:46 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter(user => user.followers > 1000)
private string GetDocumentContents(System.Web.HttpRequestBase Request) | |
{ | |
string documentContents; | |
using (Stream receiveStream = Request.InputStream) | |
{ | |
using (StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8)) | |
{ | |
documentContents = readStream.ReadToEnd(); | |
} | |
} |
/** | |
* Compares two software version numbers (e.g. "1.7.1" or "1.2b"). | |
* | |
* This function was born in http://stackoverflow.com/a/6832721. | |
* | |
* @param {string} v1 The first version to be compared. | |
* @param {string} v2 The second version to be compared. | |
* @param {object} [options] Optional flags that affect comparison behavior: | |
* <ul> | |
* <li> |