Skip to content

Instantly share code, notes, and snippets.

@asaskevich
asaskevich / run.bat
Last active May 5, 2017 14:56
Compile and run C# app from command line
@echo off
:: Making directory for executable files
md build
set /p fName=Write source name:
:: Csharp compiler must be in %PATH%
csc.exe %fName%.cs
:: Move executable file to directory
move %fName%.exe build/
cd build
cls
@drewolson
drewolson / reflection.go
Last active November 20, 2023 09:39
Golang Reflection Example
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`
@border
border / goauth2-example.go
Created September 1, 2012 16:32
Google goauth2 example
package main
import (
"code.google.com/p/goauth2/oauth"
"crypto/tls"
"io/ioutil"
"log"
"net/http"
"text/template"
)
@haschek
haschek / .jshintrc
Created May 4, 2012 16:08
JSHint Configuration, Strict Edition
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@jonnyreeves
jonnyreeves / index.html
Created April 23, 2012 21:38
JavaScript Class Structure using requireJS. The following code shows you how to create a Class definition in one JavaScript file and then import it for use in another; coming from an ActionScript 3 background this (and some of JavaScript specific traits)
<!DOCTYPE html>
<html>
<head>
<script data-main="usage" src="http://requirejs.org/docs/release/1.0.8/comments/require.js"></script>
</head>
<body>
<p>Check your JavaScript console for output!</p>
</body>
</head>