- https://t.co/1FSFQUfp
- http://t.co/vJzKAzFs
- http://t.co/ncTxB5za
- http://t.co/klb4yNn7
- https://twitter.com/randomfrequency/status/244188321834758145
- https://www.lucidchart.com/
- google drawings (a part of google docs I never noticed somewhow)
- http://t.co/E5uMkjaP
- https://t.co/8w7ob5dc
- Emacs' Artist Mode
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 class DataTranslator | |
{ | |
public static Func<IDataRecord, T> CreateTranslator<T>(IDataRecord record) | |
{ | |
Type targetType = typeof(T); | |
string cacheKey = string.Format("{0}-Translator", targetType); | |
var cachedTranslator = WebContextCache.GetItem<Func<IDataRecord, T>>(cacheKey); | |
if (cachedTranslator != null) |
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
http://cvr.dk/Site/Forms/PublicService/DisplayCompany.aspx?cvrnr=30505166 | |
def extract_name(doc) | |
(doc/"div.titletext").inner_html.strip | |
end | |
def extract_address(doc) | |
(doc/"tr:contains('Adresse')/td.fieldvalue").inner_html =~ /^(.+)<br\W+\d{4}\W+(.+)$/ | |
$~[1].strip.gsub("<br />", ", ") | |
end |
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 class Analytics | |
{ | |
// Tracker version. | |
private const string Version = "4.4sa"; | |
private const string CookieName = "__utmmobile"; | |
// The path the cookie will be available to, edit this to use a different | |
// cookie path. | |
private const string CookiePath = "/"; |
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.Configuration; | |
using System.Web.Mvc; | |
using GoogleAnalyticsTracker; | |
using SocialFruits.Domain; | |
using SocialFruits.Domain.Entities; | |
namespace SocialFruits.Extensions.Attributes | |
{ | |
public class TrackEventsInGoogleAnalyticsAttribute : ActionFilterAttribute | |
{ |
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
abstract class Comment | |
{ | |
public abstract void Generate(StringBuilder builder); | |
public string Generate() | |
{ | |
StringBuilder builder = new StringBuilder(); | |
this.Generate(builder); | |
return builder.ToString(); | |
} |
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 to fetch the data from Wolfram|Alpha API based on user query | |
Function Invoke-WolframAlphaAPI($Query) | |
{ | |
Return (Invoke-RestMethod -Uri "http://api.wolframalpha.com/v2/query?appid=APIKEY&input=$($Query.Replace(' ','%20'))").queryresult | |
} | |
#Eventhandler and Flow control once the Search button is pressed | |
$EventHandler =[System.EventHandler]{ | |
$Panel2.Visible = $False |
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
<button>Alerted</button> |
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
// http://stackoverflow.com/questions/18432577/stacked-tabs-in-bootstrap-3 | |
.tabs-below, .tabs-right, .tabs-left { | |
.nav-tabs { | |
border-bottom: 0; | |
} | |
} | |
.tab-content > .tab-pane, | |
.pill-content > .pill-pane { | |
display: none; |
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
// Added by Ben Yanke | |
// from https://gist.github.com/benyanke/862e446e5a816551928d8acc2d98b752 | |
console.log('Loading function'); | |
const https = require('https'); | |
const url = require('url'); | |
// SETUP | |
// urlToUse = in this environment variable, place the name of another environment variable which contains the key. | |
// This allows easy dev/prod switching. |
OlderNewer