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 " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
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
# ZenburnPowerShell.psm1 by Adam Boddington | |
# http://stackingcode.com/blog/2011/11/14/zenburn-powershell | |
# Zenburn by Jani Nurminen | |
# http://slinky.imukuppi.org/zenburnpage | |
# Place this file into a module locations, you can check by | |
# $env:psmodulepath | |
# Run: | |
# Set-ExecutionPolicy RemoteSigned -Scope process |
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
#include <GLFW/glfw3.h> | |
#include <cstdlib> | |
#include <cstdio> | |
#include <memory> | |
#include <functional> | |
namespace | |
{ | |
GLfloat spin = 0.f; |
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
#pragma once | |
//--------------------------------------------------------------------------------------------- | |
// FIXMEs / TODOs / NOTE macros | |
//--------------------------------------------------------------------------------------------- | |
#define _QUOTE(x) # x | |
#define QUOTE(x) _QUOTE(x) | |
#define __FILE__LINE__ __FILE__ "(" QUOTE(__LINE__) ") : " | |
#define NOTE( x ) message( x ) |
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
# Install the Ruby from http://rubyinstaller.org/downloads/ and install it to path such as C:\ruby | |
# Install the Ruby development kit from here and extract it to path such as c:\devkit. Run the following commands to generate the config.yml file | |
ruby dk.rb init | |
# Edit the generated config.yml file to include installed Rubies. For example, in our case, it will look like this | |
# This configuration file contains the absolute path locations of all | |
# installed Rubies to be enhanced to work with the DevKit. This config |
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
#define 喵喵喵 main | |
#define 喵喵 int | |
#define 喵 ( | |
#define 喵喵呜 ) | |
#define 喵喵喵喵 { | |
#define 喵呜喵 } | |
#define 喵呜喵呜喵 printf | |
#define 呜 "\n" | |
#define 喵呜喵呜 return | |
#define 呜喵 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
' Open the Macro Explorer (Tools/Macros/Macro Explorer), create a new Module, and add the following subroutine: | |
Sub RunPremake() | |
If Not DTE.Solution Is Nothing And Not String.IsNullOrEmpty(DTE.Solution.FullName) Then | |
Dim solutionPath, solutionDir, premakeTarget, premakeFlags, premakeExePath, premakeScriptDir As String | |
solutionPath = DTE.Solution.FullName | |
solutionDir = solutionPath.Substring(0, solutionPath.LastIndexOf("\")) | |
premakeTarget = solutionDir.Substring(solutionDir.LastIndexOf("\") + 1) | |
' You might need to adjust these | |
premakeFlags = "" |
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
def sundaram(n): | |
""" | |
sundaram(n) -> [int] | |
Return a list of prime numbers which are less than n. | |
This is a commented version of implementation | |
from http://stackoverflow.com/a/2073279/439033, | |
which is based on Sundaram's Sieve | |
(http://plus.maths.org/content/os/issue50/features/havil/index) | |
""" |
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
fu=╭∩╮(︶︿︶)╭∩╮ | |
songjian=╮( ̄﹏ ̄)╭ | |
naive=Θ..Θ | |
xianzhuo=(ノ=Д=)ノ┻━┻ | |
xianzhuo=(╯#-_-)╯~~╧═╧ | |
xianzhuo=(/థฺ౪థ)/~~╧═╧ | |
aojiao=(/>///<)/~~╧═╧ |
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
-- premake4 script for DirectX11 project with proper library linkages | |
local action = _ACTION or "" | |
------------------------------------------------------------------- | |
-- Maintain VS project guid between regenerations | |
------------------------------------------------------------------- | |
local fileext = "vcproj" | |
local pattern = "ProjectGUID=\"{(.+)}\"" | |
NewerOlder