Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Roman christianroman

  • Mexico
View GitHub Profile
View ReactNative.js
This file has been truncated, but you can view the full file.
__SSTOKENSTRING = "@generated SignedSource<<dbe928e1275c495c1922c1bf063ffb70>>";
! function(e) {
function t(e) {
function t() {
var t = Array.prototype.map.call(arguments, function(e) {
if (null == e) return null === e ? "null" : "undefined";
if ("string" == typeof e) return '"' + e + '"';
try {
return JSON.stringify(e)
View vImageBlurTest.mm
- (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;
@christianroman
christianroman / _flash.html.erb
Last active Dec 18, 2015 — forked from potomak/_flash.html.erb
Rails flash messages using Twitter bootstrap 2
View _flash.html.erb
<% [:notice, :error, :alert].each do |level| %>
<% unless flash[level].blank? %>
<div class="alert <%= flash_class(level) %>">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<span><%= flash[level] %></span>
</div>
<% end %>
<% end %>