Skip to content

Instantly share code, notes, and snippets.

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace Repro
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Dapper;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Npgsql;
namespace PgsqlTest
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
use std::io;
mod rpn {
pub struct Calculator {
stack: Vec<int>,
}
enum Token<'a> {
Number(int),
Plus,
### This is when done from inside the Jersey Telecom network
➜ ~ dig google.com
; <<>> DiG 9.8.3-P1 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61606
;; flags: qr rd ra; QUERY: 1, ANSWER: 16, AUTHORITY: 0, ADDITIONAL: 0
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main(string[] args)
{
var lists = new[] { new[] { 1, 2, 3 }.ToList(), new[] { 4, 5, 6 }.ToList() };
@corruptmem
corruptmem / pixmap.cs
Created April 4, 2012 00:36
Pixmap thingy
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Detect
{
enum ParserState
{
module CameronMixin
def first_two_chars
return self[0,2]
end
end
x = "hello"
x.extend(CameronMixin)
puts x.first_two_chars()
@corruptmem
corruptmem / npm-packages.txt
Created December 29, 2011 01:55
NPM packages by "importance"
coffee-script 24019 [u'coffeescript', u'javascript', u'language', u'compiler']
socket.io 19498 [u'websocket', u'socket', u'realtime', u'cross-browser', u'apps', u'ajax', u'socket.io', u'api', u'easy', u'real-time', u'comet']
should 17605 [u'test', u'bdd', u'assert', u'framework']
expresso 16266 [u'tdd']
jade 15322 [u'engine', u'jade', u'template']
stylus 14328 [u'stylesheets', u'style', u'language', u'jade', u'parser', u'css']
mkdirp 13690 [u'directory', u'mkdir', u'like']
mime 13145 [u'util', u'mime', u'mapping', u'library']
underscore 11906 [u'helper', u'programming', u'functional', u'server', u'util', u'client', u'browser']
nodeunit 11571 [u'node.js', u'testing', u'unit', u'easy']
/*
* CommonJS-compatible mustache.js module
*
* See http://github.com/janl/mustache.js for more info.
*/
/*
mustache.js — Logic-less templates in JavaScript
See http://mustache.github.com/ for more info.