Andrey Sidorenko gene9

View gist:9215489
1 2 3 4 5 6 7 8 9 10
using System.IO;
using System;
using System.ComponentModel;
 
class Program
{
public int? NullableProperty { get; set; }
 
static void Main(string[] args)
{
View PSPDFUIKitMainThreadGuard.m
1 2 3 4 5 6 7 8 9 10
// Taken from the commercial iOS PDF framework http://pspdfkit.com.
// Copyright (c) 2013 Peter Steinberger. All rights reserved.
// Licensed under MIT (http://opensource.org/licenses/MIT)
//
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it.
 
#import <objc/runtime.h>
#import <objc/message.h>
 
// Compile-time selector checks.
View konklone.advanced.conf
1 2 3 4 5 6 7 8 9 10
server {
listen 80;
server_name konklone.com;
return 301 https://$host$request_uri;
}
 
# optional: the 'spdy' at the end of the listen command below turns on SPDY support.
 
server {
listen 443 ssl spdy;
View gist:6145057
1 2 3 4 5 6 7 8 9 10
# create stub, then run flask app in tornado on port 5000 (perhaps with supervisord config below http://supervisord.org/index.html)
 
#!/usr/bin/env python
 
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from myflaskapp import app
 
http_server = HTTPServer(WSGIContainer(app))
View minimial-cedet-config.el
1 2 3 4 5 6 7 8 9
;;; minimial-cedet-config.el --- Working configuration for CEDET from bzr
 
;; Copyright (C) Alex Ott
;;
;; Author: Alex Ott <alexott@gmail.com>
;; Keywords: cedet, C++, Java
;; Requirements: CEDET from bzr (http://cedet.sourceforge.net/bzr-repo.shtml)
 
;; Do checkout of fresh CEDET, and use this config (don't forget to change path below)
View clojure-match.clj
1 2 3 4 5 6 7 8 9 10
(use '[clojure.core.match :only [match]])
 
(defn evaluate [env [sym x y]]
(match [sym]
['Number] x
['Add] (+ (evaluate env x) (evaluate env y))
['Multiply] (* (evaluate env x) (evaluate env y))
['Variable] (env x)))
(def environment {"a" 3, "b" 4, "c" 5})
View gist:2931885
1 2 3 4 5 6 7 8 9
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Reflection.Emit;
using System.Collections.Concurrent;
using System.Data;
using System.Reflection;
View gist:2714357
1 2 3 4 5 6 7 8 9
#! /usr/bin/env python
 
import redis
import random
import pylibmc
import sys
 
r = redis.Redis(host = 'localhost', port = 6389)
mc = pylibmc.Client(['localhost:11222'])
View model_localized_classmethod.py
1 2 3 4 5 6 7 8 9 10
@classmethod
def localized(cls, lang=u'en'):
"""
Returns a QuerySet which will be pre-populated with localized values
 
Usage:
Item.localized("en").filter(…)
"""
if not isinstance(lang, Language):
lang = Language.objects.get(iso639_3=lang)
View gist:1930244
1 2 3 4 5 6 7 8 9 10
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
 
D:\as\projects\test>lein plugin install lein-noir 1.2.1
[INFO] Unable to find resource 'lein-noir:lein-noir:jar:1.2.1' in repository cen
tral (http://repo1.maven.org/maven2)
Copying 1 file to c:\tmp\lein-57e6bf6f-bbab-4035-9060-b310b0ae1cb4\lib
Including lein-noir-1.2.1.jar
Including clojure-1.2.1.jar
Exception in thread "main" java.io.IOException: Couldn't delete c:\tmp\lein-57e6
Something went wrong with that request. Please try again.