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
#encoding=utf-8 | |
import os | |
import sys | |
import StringIO | |
import json | |
def get_file_content(path_to_sln): | |
with open(path_to_sln) as fp: | |
content = fp.read() | |
return content | |
return None |
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
#encoding=utf-8 | |
import os | |
import sys | |
import StringIO | |
import json | |
def get_file_content(path_to_sln): | |
with open(path_to_sln) as fp: | |
content = fp.read() | |
return content | |
return None |
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
// Copyright (c) 2013 The Wandoujia Authors. All rights reserved. | |
#ifndef PLATFORM_WDJ_CONNECTION_WRAPPER_WDJ_CONNECTION_DOWNLOADER_H_ | |
#define PLATFORM_WDJ_CONNECTION_WRAPPER_WDJ_CONNECTION_DOWNLOADER_H_ | |
#include <windows.h> | |
#include <map> | |
#include "net/win_http.h" | |
// | |
class EngineDownloader: async_wininet::WinHTTPListener { | |
public: | |
static EngineDownloader* GetInstance(); |
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
#!/usr/bin/env python | |
#encoding=utf-8 | |
# Hacker Need Food! | |
import json | |
import os | |
import sys | |
from optparse import OptionParser | |
import urllib, urllib2, cookielib |
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 os | |
import sys | |
import tornado.web | |
import tornado.ioloop | |
import json | |
import random, string | |
raw_file_path = None | |
meta_data_path = None |
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
package main | |
import ( | |
"code.google.com/p/leveldb-go/leveldb/db" | |
"code.google.com/p/leveldb-go/leveldb/table" | |
"fmt" | |
"runtime" | |
) | |
type kv struct { |
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
步骤一,将你准备好的U盘或移动硬盘或分区(大于等于6G),用磁盘工具格式化成Mac OS扩展(日志式)格式,名称输入“Mavericks”,并创建 | |
步骤二,从Mac App Store下载安装程序。(或任何地方获得的安装程序) | |
步骤三,请先确认安装程序在应用程序文件夹里。(重要:如下载的是镜像,请挂载后将安装程序复制到应用程序文件夹里。) | |
步骤四,打开终端,输入以下代码,后输入密码确认(密码不会显示): | |
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Mavericks --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction | |
复制代码 |
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
// Check is current MAC OS X version less than supportedVersion | |
function checkForMacOSX(supportedVersion) { | |
try { | |
// Get current ProductVersion | |
var tProductVersion = system.version.ProductVersion; | |
// Get current ProductName | |
var tProductName = system.version.ProductName; | |
// Check if current version is less than supportedVersion, if yes Set the result type to Fatal, and give correct message to user |
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> | |
<style> | |
body { | |
font-family: 'Georgia', serif; | |
font-size: 17px; | |
color: #000; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <png.h> | |
#include <webp/encode.h> | |
#include <webp/mux.h> | |
static void PNGAPI error_function(png_structp png, png_const_charp dummy) { |