Skip to content

Instantly share code, notes, and snippets.

const fs = require('fs');
const path = require('path');
/** Log debug messages to the console? */
const DEBUG = true;
function copy(src, dest) {
return new Promise((resolve, reject) => {
walkFind(src).then((list) => {
mkdir(dest).then(() => {
#include <iostream>
int foo[10][10];
void init() {
for (auto i = 0; i < 10; ++i) {
for (auto j = 0; j < 10; ++j) {
foo[i][j] = i + j;
}
}
2016-03-11 16:03:08 ERROR Zope.SiteErrorLog 1457683388.620.654171966413 http://192.168.15.156:8080/Wynyard/tests/@@edit
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module plone.z3cform.layout, line 66, in __call__
Module plone.z3cform.layout, line 50, in update
Module plone.dexterity.browser.edit, line 58, in update
Module plone.z3cform.fieldsets.extensible, line 59, in update
Module plone.z3cform.patch, line 30, in GroupForm_update
Shader "Custom/Simple" {
Properties {
_MainTex ("Albedo (RGB)", 2D) = "white" {}
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 200
CGPROGRAM
// Physically based Standard lighting model, and enable shadows on all light types
public class ChaseCamera : MonoBehaviour {
[Tooltip("The GameObject instance on the scene to match positions with (ie. Don't pick a prefab from the Assets list)")]
public GameObject target;
[Tooltip("Trail this far behind the target")]
public float trailDistance;
[Tooltip("Float this far above the target")]
public float floatHeight;
@shadowmint
shadowmint / README.md
Created September 7, 2015 03:13
Gulp test

Run:

npm install && gulp

@shadowmint
shadowmint / gist:d9831b55c68174342bde
Created June 19, 2015 06:24
Wintersmith gen sample
module.exports = function (env, callback) {
function Page(id, count, articles, total_pages) {
var key = id == 0 ? '' : id;
var rtn = new env.plugins.Page();
var targets = articles.length <= count ? articles : articles.splice(0, count);
rtn.getFilename = function() {
return 'index' + key + '.html';
};
#pragma once
#include <memory>
#include <iostream>
#include <string>
#include <cstdio>
using namespace std;
/// Cast an FString to char * for debugging purposes
#include "UtilsPluginPrivatePCH.h"
#include "Utils/Camera/Utils_CameraFollow.h"
#include "api/Actor.h"
#include "api/Camera.h"
#include "api/Player.h"
#include "api/Debug.h"
UUtils_CameraFollow::UUtils_CameraFollow() {
bWantsInitializeComponent = true;
PrimaryComponentTick.bCanEverTick = true;

Other various files are obviously not included here, because they're not relevant.