Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View wilg's full-sized avatar
🚀
Doing new things

Wil Gieseler wilg

🚀
Doing new things
View GitHub Profile
jQuery ->
return unless $("#module-location-map").length > 0
window.overlays = []
# Setup Map
options = {
center: new google.maps.LatLng(34.1626653, -118.2518423),
zoom: 3,
(function() {
var Rect, rectForOverlay, updateMarkers;
jQuery(function() {
var map, options;
if (!($("#module-location-map").length > 0)) {
return;
}
window.overlays = [];
options = {
# encoding: utf-8
class AvatarUploader < CarrierWave::Uploader::Base
include Cloudinary::CarrierWave
process :convert => 'jpg'
process :tags => ['avatar']
process :angle => "exif"
process :default_image => "/assets/profile_profpictureplaceholder.png"
var Slideshow = Class.create({
// USAGE
//
// <script type="text/javascript">
// document.observe("dom:loaded", function() {
// new Slideshow("slideshow", image_list).setImageDimensions(800, 340).setSlideDuration(2.0).start();
// });
// </script>
//
using UnityEngine;
using System.Collections.Generic;
using System.Collections;
[RequireComponent (typeof (AudioSource))]
public class AutoLipSyncBlendshape : MonoBehaviour
{
public SkinnedMeshRenderer skinnedMeshRenderer;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wilg
wilg / gist:b9cdd0274f24c743ad52
Created July 19, 2014 19:39
Embed an NSViewController in another view with auto layout
- (void)embedViewController:(NSViewController *)controller inView:(NSView *)container {
[container addSubview:controller.view];
controller.view.translatesAutoresizingMaskIntoConstraints = NO;
controller.view.frame = container.bounds;
[container addConstraint:[NSLayoutConstraint constraintWithItem:container
attribute:NSLayoutAttributeTop
relatedBy:NSLayoutRelationEqual
toItem:controller.view
attribute:NSLayoutAttributeTop
multiplier:1.0
@wilg
wilg / GeneratePreviewForURL.m
Last active August 29, 2015 14:03
Quick Look Doesn't Work!
#include <CoreFoundation/CoreFoundation.h>
#include <CoreServices/CoreServices.h>
#include <QuickLook/QuickLook.h>
#include <Cocoa/Cocoa.h>
OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options);
void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview);
OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options)
{
@wilg
wilg / gist:10326783
Created April 9, 2014 22:47
keybase.md

Keybase proof

I hereby claim:

  • I am wilg on github.
  • I am wilg (https://keybase.io/wilg) on keybase.
  • I have a public key whose fingerprint is 0923 2043 3310 05B9 7CF5 6545 1F89 B043 2A6F DCF6

To claim this, I am signing this object:

Pod::Spec.new do |s|
s.name = 'Nimbus'
s.version = '1.0.0'
s.license = 'Apache License, Version 2.0'
s.summary = 'An iOS framework whose growth is bounded by O(documentation).'
s.homepage = 'http://docs.nimbuskit.info/index.html'
s.author = { 'Jeff Verkoeyen' => 'jverkoey@gmail.com',
'Bubnov Slavik' => 'bubnovslavik@gmail.com',
'Roger Chapman' => 'rogchap@gmail.com',
'Manu Cornet' => 'manu.cornet@gmail.com',