Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Doing new things

Wil Gieseler wilg

🚀
Doing new things
View GitHub Profile
View Nimbus-without-JSONKit.podspec
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',
View gist:10326783

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:

@wilg
wilg / GeneratePreviewForURL.m
Last active Aug 29, 2015
Quick Look Doesn't Work!
View GeneratePreviewForURL.m
#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:b9cdd0274f24c743ad52
Created Jul 19, 2014
Embed an NSViewController in another view with auto layout
View gist:b9cdd0274f24c743ad52
- (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
View indiana_county_topojson_v3.topo.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View AutoLipSyncBlendshape.cs
using UnityEngine;
using System.Collections.Generic;
using System.Collections;
[RequireComponent (typeof (AudioSource))]
public class AutoLipSyncBlendshape : MonoBehaviour
{
public SkinnedMeshRenderer skinnedMeshRenderer;
View gist:764355
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>
//
View gist:3124753
# 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"
View gist:3160737
(function() {
var Rect, rectForOverlay, updateMarkers;
jQuery(function() {
var map, options;
if (!($("#module-location-map").length > 0)) {
return;
}
window.overlays = [];
options = {
View gist:3160745
jQuery ->
return unless $("#module-location-map").length > 0
window.overlays = []
# Setup Map
options = {
center: new google.maps.LatLng(34.1626653, -118.2518423),
zoom: 3,