Borrow and AsRef について調べたことをまとめた資料です。一部のコードは参照している文書から引用しています。
API Doc の Examples を見ても差分がよく分からない。
| import Ember from 'ember'; | |
| window.list = null; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| list: [Ember.Object.create({name: 'alpha'}), Ember.Object.create({name: 'bravo'}), Ember.Object.create({name: 'charlie'})], | |
| cmp: Ember.computed('[email protected]', function() { |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| inspectLookup() { | |
| return Ember.inspect(this.container.lookup('falsy:false')); | |
| }, | |
| firstLookup: Ember.computed(function() { | |
| return `1st lookup: ${this.inspectLookup()}`; |
Borrow and AsRef について調べたことをまとめた資料です。一部のコードは参照している文書から引用しています。
API Doc の Examples を見ても差分がよく分からない。
| #include <unistd.h> | |
| #include <termios.h> | |
| int | |
| main() { | |
| struct termios orig_termios; | |
| tcgetattr(STDIN_FILENO, &orig_termios); | |
| orig_termios.c_oflag &= ~(OPOST); |
| <?xml version="1.0"?> | |
| <metacity_theme> | |
| <info> | |
| <name>Adwaita</name> | |
| <author>GNOME Art Team <art.gnome.org></author> | |
| <copyright>Â Intel, Â Red Hat, Lapo Calamandrei</copyright> | |
| <date>2012</date> | |
| <description>Default GNOME 3 window theme</description> | |
| </info> |
| #!/usr/bin/env ruby | |
| require 'curses' | |
| require 'pty' | |
| require 'landescape' | |
| class Terminal < Struct.new(:window, :stdout, :stdin, :pid) | |
| def wait | |
| Process.detach(pid).join | |
| end |
| #!/usr/bin/env ruby | |
| require 'pty' | |
| require 'curses' | |
| PTY.getpty 'bash' do |stdout, stdin, pid| | |
| # 画面のサイズを変えてみる | |
| stdin.puts 'stty rows 10' | |
| stdin.puts 'stty cols 50' |
| fatal: '/home/git/repositories/hibariya_retter.git' does not appear to be a git repository | |
| fatal: Could not read from remote repository. | |
| Please make sure you have the correct access rights | |
| and the repository exists. |
| This is an automatically generated Delivery Status Notification | |
| THIS IS A WARNING MESSAGE ONLY. | |
| YOU DO NOT NEED TO RESEND YOUR MESSAGE. | |
| Delivery to the following recipient has been delayed: | |
| [email protected] |
See also