(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
@RunWith(Arquillian.class) | |
public class CustomerResourceClientTest | |
{ | |
private static final String REST_PATH = "rest"; | |
@Deployment(testable = false) | |
public static Archive<?> createDeployment() | |
{ | |
return ShrinkWrap.create(WebArchive.class) | |
.addPackage(Customer.class.getPackage()) |
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="java" deleted="false" description="" enabled="true" name="setup">${:import(org.junit.Before)} | |
@Before | |
public void setUp() { | |
${cursor} | |
}</template><template autoinsert="true" context="java" deleted="false" description="" enabled="true" name="teardown">${:import(org.junit.After)} | |
@After | |
public void tearDown() { | |
${cursor} | |
}</template><template autoinsert="false" context="java-members" deleted="false" description="test method" enabled="true" id="org.eclipse.jdt.ui.templates.test" name="test">${:import(org.junit.Test)} | |
@Test |
#define STRLEN 32 | |
#define F_CPU 1843200UL | |
#define USART_BAUDRATE 115200 | |
#define BAUD_PRESCALE (((F_CPU / (USART_BAUDRATE * 16UL))) - 1) | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <string.h> | |
#include <util/delay.h> |
* Only the releases of the stable versions are listed in principle. The releases of the unstable versions especially considered to be important are indicated as "not stable." | |
* The branches used as the source of each releases are specified, and the branching timing of them are also shown. BTW, before subversionizing of the repository, the term called "trunk" was not used, but this list uses it in order to avoid confusion. | |
* In order to show a historical backdrop, big conferences (RubyKaigi, RubyConf and Euruko) are also listed. About the venues of such conferences, general English notations are adopted, in my hope. | |
* ruby_1_8_7 branch was recut from v1_8_7 tag after the 1.8.7 release because of an accident. | |
* 1.2.1 release was canceled once, and the 2nd release called "repack" was performed. Although there were other examples similar to this, since the re-releases were performed during the same day, it does not write clearly in particular. | |
* Since 1.0 was released with the date in large quantities, the mi |
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
class PdfMerger | |
def merge(pdf_paths, destination) | |
first_pdf_path = pdf_paths.delete_at(0) | |
Prawn::Document.generate(destination, :template => first_pdf_path) do |pdf| | |
pdf_paths.each do |pdf_path| | |
pdf.go_to_page(pdf.page_count) |
This document is outdated. | |
You should read David Bryant Copeland's excellent online book: http://angular-rails.com/crud_recipe.html | |
--------------------------------------------------------------------------------------------------------------- | |
I think it's better to install javascript/css libraries using Bower rather than gem which is Ruby packager. | |
1. Install Rails 4 and create a new project. | |
2. Install bower(Note you need to install node first.) | |
sudo npm install -g bower |