This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<h1>Title: {{.Title}}</h1> | |
<p>Content: {{.Content}}</p> |
This file contains hidden or 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
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S Release') DO RMDIR /S /Q "%%G" FOR /F "tokens=*" %%G IN ('DIR /B /AD /S Debug') DO RMDIR /S /Q "%%G" |
This file contains hidden or 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
defmodule My do | |
defmacro if(condition, clauses) do | |
do_clause = Keyword.get(clauses, :do, nil) | |
else_clause = Keyword.get(clauses, :else, nil) | |
quote do | |
case unquote(condition) do | |
_ in [false, nil] -> unquote(else_clause) | |
_ -> unquote(do_clause) |
This file contains hidden or 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.Http; | |
using System.Threading.Tasks; | |
using Android.App; | |
using Android.Content; | |
using Android.Runtime; | |
using Android.Views; | |
using Android.Widget; | |
using Android.OS; |
This file contains hidden or 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
var _ = require('underscore'); | |
var request = require('request'); | |
var async = require('async'); | |
var Parse = require('kaiseki'); | |
var settings = require('./settings.json'); | |
var parse = new Parse(settings.parseAppId, settings.parseRestApiKey); | |
request('http://sidebar.io/api', function (error, response, body) { | |
if (error) { |
This file contains hidden or 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
#import "HudView.h" | |
@implementation HudView { | |
} | |
+ (HudView *)hudInView:(UIView *)view animated:(BOOL)animated { | |
HudView *hudView = [[HudView alloc] initWithFrame:view.bounds]; | |
hudView.opaque = NO; |
This file contains hidden or 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($, window, undefined) { | |
'use strict'; | |
var $doc = $(document), | |
Modernizr = window.Modernizr; | |
$(document).ready(function() { | |
$.fn.foundationAlerts ? $doc.foundationAlerts() : null; | |
$.fn.foundationButtons ? $doc.foundationButtons() : null; | |
$.fn.foundationAccordion ? $doc.foundationAccordion() : null; |
This file contains hidden or 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
// credit Rolf Timmermans | |
// http://voormedia.com/blog/2012/11/responsive-background-images-with-fixed-or-fluid-aspect-ratios | |
/* Calculate fluid ratio based on two dimensions (width/height) */ | |
@mixin fluid-ratio($large-size, $small-size) { | |
$width-large: nth($large-size, 1); | |
$width-small: nth($small-size, 1); | |
$height-large: nth($large-size, 2); | |
$height-small: nth($small-size, 2); | |
$slope: ($height-large - $height-small) / ($width-large - $width-small); |
This file contains hidden or 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.Collections; | |
using System.IO; | |
using System.Web; | |
using SignalR; | |
using SignalR.Hubs; | |
[HubName("cssWatcher")] | |
public class CssWatcher : Hub | |
{ | |
public static void Init() |
This file contains hidden or 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 FeedResult : ActionResult | |
{ | |
public Encoding ContentEncoding { get; set; } | |
public string ContentType { get; set; } | |
private readonly SyndicationFeedFormatter feed; | |
public SyndicationFeedFormatter Feed | |
{ | |
get { return feed; } | |
} |