The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
Just like in Europe. It's the same normal international data plan for most carriers (I've done it on At&t and Verizon).
And you get cash from 7-11 (yes I'm serious). American cards very very frequently don't work. Especially in any sort of machine, particularly vending machines and the train ticket machines. Many atm's won't take american cards either. But, every single 7-11 (which are everywhere) has an atm which takes american cards. They sometimes say 7-i, or Seven and i holdings. It's all the same thing (7-11 is actually a japanese company, and they are everywhere). Other than 7-11, every Post office should have an ATM that works too, but they are way less common.
| #!/bin/bash | |
| # Create an Iframe index from HLS segmented streams | |
| # $1: Filename to be created | |
| # $2: Location of segmented ts files | |
| # Check how many arguments | |
| if [ $# != 2 ]; then | |
| echo "Usage: $0 [Input filename] [Location of segmented streams]" | |
| exit 1; | |
| fi |
FriendlyId uses Rails's extending method to avoid overwriting your model's find method. Internally this is implemented similar to this:
def self.friendly
all.extending(friendly_id_config.finder_methods)
endThis however comes with a performance impact, because extending invokes Ruby's extend, which blows away MRI's method cache. To work around this, FriendlyId lets you include a :finders module which overrides your model's find to increase performance.
| diff --git a/compile.c b/compile.c | |
| index 9ff3bf5..306fd80 100644 | |
| --- a/compile.c | |
| +++ b/compile.c | |
| @@ -172,10 +172,10 @@ r_value(VALUE value) | |
| (((rb_iseq_t*)DATA_PTR(iseq))->filepath) | |
| #define NEW_ISEQVAL(node, name, type, line_no) \ | |
| - new_child_iseq(iseq, (node), (name), 0, (type), (line_no)) | |
| + new_child_iseq(iseq, (node), rb_str_frozen_literal(name), 0, (type), (line_no)) |
| " These VIM rules match the MRI C indentation rules. | |
| " | |
| " To enable use of this project specific config, add the following to your | |
| " ~/.vimrc: | |
| " | |
| " " Enable per-directory .vimrc files | |
| " set exrc | |
| " " Disable unsafe commands in local .vimrc files | |
| " set secure |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| #include "v8.h" | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <assert.h> | |
| #include <cxxabi.h> | |
| #include <dlfcn.h> | |
| using namespace v8; |
| require 'action_mailer' | |
| require 'mail' | |
| module ActionMailer | |
| class Base | |
| def clean_address(str) | |
| EmailAddress.parse(str, :no_default_name => true).quoted rescue str | |
| end | |