Skip to content

Instantly share code, notes, and snippets.

String interpolation

var x = 1;

// same as string.Format("A {0} B", x) 
var y1 = $"A {x} B"; // y == "A 1 B"

// $@ for multiline
var y2 = $@"A
@rxaviers
rxaviers / gist:7360908
Last active May 10, 2024 14:14
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@jacobbubu
jacobbubu / country.json
Created May 28, 2013 12:26
Link country table from Weibo to geonames.org's data.
This file has been truncated, but you can view the full file.
[
{
"weiboCode": "005",
"name": "Argentina",
"geoNames": {
"countryId": "3865483",
"alternateNames": [
{
"name": "Argentinië",
"lang": "af"
@jacobbubu
jacobbubu / province.json
Created May 28, 2013 12:23
Link province table of Weibo to geonames.org's data.
[
{
"weiboProvCode": "001011",
"name": "Beijing",
"countryCode": "CN",
"geoNames": {
"alternateNames": [
{
"name": "http://en.wikipedia.org/wiki/Beijing",
"lang": "link"
@wadewegner
wadewegner / addselftosqlsysadmin.cmd
Created January 25, 2012 18:35
Script to add the current user to the sysadmin role in SQL Server
@echo off
rem
rem ****************************************************************************
rem
rem Copyright (c) Microsoft Corporation. All rights reserved.
rem This code is licensed under the Microsoft Public License.
rem THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
rem ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
rem IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
rem PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.