| 😄 | 😆 | 😊 | 😃 |
😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 |
| 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷
😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨
| $xlFixedFormat = [Microsoft.Office.Interop.Excel.XlFileFormat]::xlOpenXMLWorkbook | |
| write-host $xlFixedFormat | |
| $excel = New-Object -ComObject excel.application | |
| $excel.visible = $true | |
| $folderpath = "C:\Users\gabceb\Documents\testXLS" | |
| $filetype ="*xls" | |
| Get-ChildItem -Path $folderpath -Include $filetype -recurse | | |
| ForEach-Object ` | |
| { | |
| $path = ($_.fullname).substring(0, ($_.FullName).lastindexOf(".")) |
| require "rubygems" | |
| require "yajl" | |
| require "openssl" | |
| require "socket" | |
| device_token = '39cac56f 986a0e66 3c4fd4f4 68df5598 024d2ca3 8b9f307c 741c180e 9fc30c62' | |
| device_token = device_token.gsub(" ", "") | |
| the_byte_token = [device_token].pack("H*") | |
| file = File.open("ruby_the_byte_token", "wb") |
| /* | |
| * fizzbuzz.cpp | |
| * | |
| * Created on: Apr 25, 2012 | |
| * Author: Brian Geffon | |
| * | |
| * fizzbuzz solved without looping or conditionals using only template recursion. | |
| */ | |
| #include <iostream> |
| 😄 | 😆 | 😊 | 😃 |
😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 |
| 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷
😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨
| #import <QuartzCore/QuartzCore.h> | |
| #import "Bike.h" | |
| @implementation Bike { | |
| } | |
| - (id)initWithFrame:(CGRect)frame { | |
| self = [super initWithFrame:frame]; |
| - (UIImage *)blurryImage:(UIImage *)image withBlurLevel:(CGFloat)blur { | |
| if (blur < 0.f || blur > 1.f) { | |
| blur = 0.5f; | |
| } | |
| int boxSize = (int)(blur * 100); | |
| boxSize = boxSize - (boxSize % 2) + 1; | |
| CGImageRef img = image.CGImage; | |
| vImage_Buffer inBuffer, outBuffer; |
| @interface NSManagedObject (Serialization) | |
| - (NSDictionary*) toDictionary; | |
| - (void) populateFromDictionary:(NSDictionary*)dict; | |
| + (NSManagedObject*) createManagedObjectFromDictionary:(NSDictionary*)dict | |
| inContext:(NSManagedObjectContext*)context; | |
| @end |
| // Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
| // Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // Licensed under MIT (http://opensource.org/licenses/MIT) | |
| // | |
| // You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
| // PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> |
| #!/usr/bin/env bash | |
| # This script prints out all of your Redis keys and their size in a human readable format | |
| # Copyright 2013 Brent O'Connor | |
| # License: http://www.apache.org/licenses/LICENSE-2.0 | |
| human_size() { | |
| awk -v sum="$1" ' BEGIN {hum[1024^3]="Gb"; hum[1024^2]="Mb"; hum[1024]="Kb"; for (x=1024^3; x>=1024; x/=1024) { if (sum>=x) { printf "%.2f %s\n",sum/x,hum[x]; break; } } if (sum<1024) print "1kb"; } ' | |
| } |
| // UIInterfaceOrientationMask vs. UIInterfaceOrientation | |
| // As far as I know, a function like this isn't available in the API. I derived this from the enum def for | |
| // UIInterfaceOrientationMask. | |
| inline BOOL OrientationMaskSupportsOrientation(UIInterfaceOrientationMask mask, UIInterfaceOrientation orientation) { | |
| return (mask & (1 << orientation)) != 0; | |
| } |