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
// Use https://www.sassmeister.com/ to try it out | |
$have: #dfe2e5; | |
$need: #e1e4e6; | |
//$need: #d8dbe1; | |
//$out: saturate(darken($have, 2.15), 2.7); | |
$out: desaturate(lighten($have, 0.58), 1.25); |
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 toLiteral() { | |
var t = atom.workspace.getActiveTextEditor().getSelectedText(); | |
t = t.replace(/\' \+ /g, "${"); | |
t = t.replace(/ \+ \'/g, "}"); | |
if (t.indexOf("'") == 0) { | |
t = t.substring(1); | |
} else { | |
t = "${" + t; |
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.Globalization; | |
using System.Text; | |
namespace TC | |
{ | |
// Removes diacritics from a string | |
// | |
// Original version by Michael Kaplan: | |
// -> http://blogs.msdn.com/b/michkap/archive/2007/05/14/2629747.aspx |
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.Text; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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.IO; | |
using System.Net; | |
using System.Text; | |
namespace DHlavaty | |
{ | |
public class Zendesk | |
{ | |
/* |
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.Net; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
public class WebClientEx : WebClient | |
{ | |
public WebClientEx(CookieContainer container) |
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 static class AbsoluteUrl | |
{ | |
private static bool initializedAlready = false; | |
private static Object initlock = new Object(); | |
// AbsoluteUrl without parameters | |
public static string MVC_Home_Index; | |
public static string MVC_MyArea_Settings_Index; | |
// AbsoluteUrl with parameters |
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
/* | |
Simplest method to do a REST API calls in c# with basic .NET classes. | |
I use it when communicationg with Recurly.com REST services. | |
*/ | |
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.IO; |
NewerOlder