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
//UI Changes | |
net_graph "1" | |
cl_bob_lower_amt "0" | |
cl_bobamt_lat "0" | |
cl_bobamt_vert "0" | |
hud_scaling "1" | |
cl_bobcycle "2" | |
cl_autowepswitch "0" | |
hud_fastswitch "0" |
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
from model_utils.fields import StatusField | |
from model_utils import Choices | |
class Article(models.Model): | |
ANOTHER_CHOICES = Choices('draft', 'published') | |
# ... | |
another_field = StatusField(choices_name='ANOTHER_CHOICES') |
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
(setq gc-cons-threshold 100000000) | |
;; Added by Package.el. This must come before configurations of | |
;; installed packages. Don't delete this line. If you don't want it, | |
;; just comment it out by adding a semicolon to the start of the line. | |
;; You may delete these explanatory comments. | |
(require 'package) | |
(package-initialize) | |
(setq package-archives '(("gnu" . "http://elpa.emacs-china.org/gnu/") | |
("melpa" . "http://elpa.emacs-china.org/melpa/") |
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
SELECT | |
a.*, c.categoryName as articleCategoryName | |
FROM | |
ctms_article a | |
LEFT JOIN ctms_article b ON a.articleCategoryId = b.articleCategoryId | |
AND a.lastModified < b.lastModified | |
LEFT JOIN ctms_article_category c ON a.articleCategoryId = c.articleCategoryId | |
WHERE | |
a.state = 1 | |
GROUP BY |
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle | |
call vundle#begin() | |
Plugin 'gmarik/vundle' | |
"Plugin 'ervandew/supertab' | |
Plugin 'nanotech/jellybeans.vim' | |
Plugin 'scrooloose/nerdtree' |
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
(ns pdms.core | |
(:use korma.core | |
[korma.db :only (defdb)])) | |
(def db-spec {:subprotocol "postgresql" | |
:subname "//localhost/pdms" | |
:user "huleehom" | |
:password ""}) | |
(defdb db db-spec) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Index</title> | |
<link rel="stylesheet" href="./backup.css" type="text/css" media="screen" title="no title" charset="utf-8"/> | |
<style type="text/css"> | |
</style> | |
</head> | |
<body> | |
<div class="navbar navbar-static-top navbar-inverse"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<h1>Resume</h1> | |
<h2>Basic Information</h2> |
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
Rxvt.background:white | |
Rxvt.foreground:black | |
Rxvt.colorBD:yellow | |
Rxvt.colorUL:green | |
Rxvt.multichar_encoding:gb2312 | |
Rxvt.scrollBar:Fault | |
Rxvt.scrollBar_right:True | |
Rxvt.scrollBar_floating: True | |
Rxvt.scrollstyle: next | |
Rxvt.saveLines:10000 |
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
(import '(java.net DatagramSocket DatagramPacket)) | |
(def socket (DatagramSocket. 5200)) | |
(def running (atom true)) | |
(def buffer (make-array Byte/TYPE 1024)) | |
(defn parse [packet] | |
(println (String. (.getData packet) 0 (.getLength packet)))) | |
(defn start-receiver [] |
NewerOlder