Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});
// | |
// Created by Andrey Streltsov on 16/11/15. | |
// | |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> | |
@interface UIImageView (CoordinateTransform) | |
-(CGPoint) pixelPointFromViewPoint:(CGPoint)viewPoint; | |
-(CGPoint) viewPointFromPixelPoint:(CGPoint)pixelPoint; |
#!/bin/bash | |
# Загружаем модуль ядра Network Block Device | |
modprobe nbd | |
# "Подключаем" образ к устройству /dev/nbd0. | |
qemu-nbd --connect /dev/nbd0 --read-only /путь/к/образу.qcow2 | |
# Ищем разделы на устройстве. | |
kpartx -arvs /dev/nbd0 |
Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});
#!/bin/bash | |
find "$1" -type f -name "*.ape" -print0 | while read -d $'\0' song | |
do | |
output=${song%.ape}.mp3 | |
cue=${song%.ape}.cue | |
avconv -i "$song" -b 192k "$output" | |
if ls "$cue" &> /dev/null; then | |
mp3splt -a -c "$cue" "$output" |
#ifndef __NSLOG_ADDITIONS_H__ | |
#define __NSLOG_ADDITIONS_H__ | |
// DLog will output like NSLog only when the DEBUG variable is set | |
#ifdef DEBUG | |
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); | |
#else | |
# define DLog(...) | |
#endif |
# Save all records added in IRB console | |
EntityName.all.each { |entity| entity.save! } |
Install OS X El Capitan
is createdfunction (add_copy_qt5_postbuild_step MY_APP_NAME MY_APP_BINARY_DIR) | |
ADD_CUSTOM_COMMAND( | |
TARGET ${MY_APP_NAME} POST_BUILD | |
# DEBUG | |
COMMAND ${CMAKE_COMMAND} -E copy ${Qt5Core_DIR}/../../../bin/libEGLd.dll ${MY_APP_BINARY_DIR} | |
COMMAND ${CMAKE_COMMAND} -E copy ${Qt5Core_DIR}/../../../bin/libGLESv2d.dll ${MY_APP_BINARY_DIR} | |
COMMAND ${CMAKE_COMMAND} -E copy ${Qt5Core_DIR}/../../../bin/Qt53DCored.dll ${MY_APP_BINARY_DIR} | |
COMMAND ${CMAKE_COMMAND} -E copy ${Qt5Core_DIR}/../../../bin/Qt53DExtrasd.dll ${MY_APP_BINARY_DIR} | |
COMMAND ${CMAKE_COMMAND} -E copy ${Qt5Core_DIR}/../../../bin/Qt53DInputd.dll ${MY_APP_BINARY_DIR} |
gem 'browserify-rails', '1.5.0' # until fix: https://github.com/browserify-rails/browserify-rails/issues/101
gem 'react-rails'
Browserify-rails allows to use browserify within assets pipeline. React-rails is here only to allow to use #react_component
(and thus, prerendering).
Note that jquery-rails
can be removed from Gemfile, the npm version of jquery
and jquery-ujs
will be used instead.