This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=> make -j4 | |
Scanning dependencies of target fastlz | |
Scanning dependencies of target afdt | |
[ 0%] [ 0%] Building C object third-party/fastlz/CMakeFiles/fastlz.dir/fastlz.c.o | |
Building C object third-party/libafdt/CMakeFiles/afdt.dir/src/lowlevel.c.o | |
Scanning dependencies of target pcre | |
[ 0%] Building C object third-party/pcre/CMakeFiles/pcre.dir/pcre_byte_order.c.o | |
Scanning dependencies of target mbfl | |
[ 0%] Building C object third-party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfilter.c.o | |
[ 0%] [ 0%] Building C object third-party/pcre/CMakeFiles/pcre.dir/pcre_chartables.c.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
#import <DZNEmptyDataSet/UIScrollView+EmptyDataSet.h> | |
@interface QViewController : UIViewController<UITableViewDataSource, UITableViewDelegate, DZNEmptyDataSetDelegate, DZNEmptyDataSetSource> | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "formula" | |
class Docker < Formula | |
homepage "http://docker.io" | |
url "https://github.com/dotcloud/docker.git", :tag => "v1.1.0" | |
bottle do | |
sha1 "f53dac0e65bb425aedd1ef196189d8b63a7f6d4a" => :mavericks | |
sha1 "b31d4d5e8bf01bc50ebcd24f411941d73077961f" => :mountain_lion | |
sha1 "d3df625e3dbf3d40b2953932a33fbf2be661a075" => :lion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Всем привет. | |
Я как разработчик с небольшим стажем хочу поделиться рекомендациями, которые могут оказаться полезными некоторым из вас. Чем опытнее разработчик, тем большее количество перечисленных ниже советов покажется ему очевидными и банальными. Для новичков некоторые пункты могут показаться идущими вразрез со здравым смыслом. В этом нет ничего страшного — опыт лечит :) | |
Рекомендации | |
1. Пишите только тот код, который вам действительно необходим в данный момент (принцип YAGNI) | |
Неиспользуемый код появляется из-за следующих «отмазок»: | |
«В будущем нам точно понадобится данная функциональность. Почему бы не реализовать ее прямо сейчас?» | |
«Данная абстракция выглядит незавершенной без этой функциональности, которая сейчас не используется. Но ведь в будущем она обязательно будет использоваться!» |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.base64encode = function(string) { | |
var padding = '=', | |
chrTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' + | |
'0123456789+/'; | |
function utf8Encode(str) { | |
var bytes = [], offset = 0, length, char; | |
str = encodeURI(str); | |
length = str.length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Scala < Formula | |
homepage 'http://www.scala-lang.org/' | |
url 'http://www.scala-lang.org/files/archive/scala-2.10.3.tgz' | |
sha1 '04cd6237f164940e1e993a127e7cb21297f3b7ae' | |
devel do | |
url 'http://www.scala-lang.org/files/archive/scala-2.11.0-M4.tgz' | |
sha1 '43e0983cebe75154e41a6b35a5b82bdc5bdbbaa2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('simple test', function() { | |
var obj = { | |
create_image: function() { | |
var image = new Image(); | |
image.src = 'http://google.com/1x1.gif'; | |
} | |
} | |
it('should create image', function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Base64 = ( function( ) { | |
var _PADCHAR = "=", | |
_ALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
function _getbyte( s, i ) { | |
var x = s.charCodeAt( i ); | |
if ( x > 255 ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/types.h> | |
#include <sys/sysctl.h> | |
-(NSString*) deviceName: | |
{ | |
size_t size; | |
sysctlbyname("hw.machine", NULL, &size, NULL, 0); | |
char answer[size]; | |
sysctlbyname("hw.machine", answer, &size, NULL, 0); | |
NSString *platform = @(answer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class ScalaDocs < Formula | |
homepage 'http://www.scala-lang.org/' | |
url 'http://www.scala-lang.org/files/archive/scala-docs-2.9.3.zip' | |
sha1 '5bf44bd04b2b37976bde5d4a4c9bb6bcdeb10eb2' | |
end | |
class ScalaCompletion < Formula | |
homepage 'http://www.scala-lang.org/' |
NewerOlder