Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
-
List All System Images Available for Download:
sdkmanager --list | grep system-images
-
Download Image:
sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"
/* https://twitter.com/wesbos/status/932644812582522880/ */ | |
font-feature-settings: "tnum"; | |
font-variant-numeric: tabular-nums; |
<?php | |
/** | |
* Usage.. | |
* Just save this code to your helpers file (eg: routes, filters, etc...) | |
* | |
* Then.. | |
* {{ Form::link('Delete Item', 'DELETE', route('anything.page'), array('class' => 'btn btn-primary'), 'Are you sure ?') }} | |
**/ |
/* | |
Include this after bootstrap.css. Add class of | |
vert-offset-top-value or vert-offset-bottom-value | |
to your Bootstrap 3 default rows to prevent row content | |
from touching the row content above or below. | |
*/ | |
/* Vertical Offset Bottom */ | |
.vert-offset-top-12{ | |
margin-top: 12em; |
// FizzBuzz solution with one comparison: | |
// Bitwise operations, using predefined 0-15 numbers mask | |
// live demo: http://jsfiddle.net/TbAuQ/ | |
// source: http://www.zoharbabin.com/which-fizzbuzz-solution-is-the-most-efficient | |
var words = [undefined, "Fizz", "Buzz", "FizzBuzz"], | |
mask = 810092048, //11 00 00 01 00 10 01 00 00 01 10 00 01 00 00 | |
c = 0; |
<?php | |
use Laravel\File; | |
/** | |
* Put this in laravels libraries dir and make sure to | |
* remove Response in /config/application.php | |
* This file will be autoloaded by default. | |
* | |
* @author Nico R <lt500r@gmail.com> | |
*/ | |
class Response extends \Laravel\Response |
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.
/* | |
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
*/ | |
var http = require('http'), | |
fs = require('fs'), | |
util = require('util'); | |
http.createServer(function (req, res) { | |
var path = 'video.mp4'; |