https://twitter.com/makenosound/status/948149230308167680
@makenosound Strange. You could try the classic
rm -rf ./node_modules && yarn cache clean
to see if it installs correctly — possible it was interrupted or something?
# AttributeEncrypted is a simple way to encrypt values in the database | |
# using the same mechanism as Rails credentials, including the master key. | |
# | |
# Example: | |
# class User | |
# include AttributeEncrypted | |
# | |
# attr_accessor :encrypted_secret | |
# attr_encrypted :secret | |
# end |
module Equality | |
def ==(other) | |
return false unless other.is_a?(self.class) | |
instance_variables.all? do |ivar| | |
instance_variable_get(ivar) == other.instance_variable_get(ivar) | |
end | |
end | |
end |
https://twitter.com/makenosound/status/948149230308167680
@makenosound Strange. You could try the classic
rm -rf ./node_modules && yarn cache clean
to see if it installs correctly — possible it was interrupted or something?
fu$ yarn exec webpack-dev-server | |
yarn exec v1.3.2 | |
warning package.json: No license field | |
module.js:544 | |
throw err; | |
^ | |
Error: Cannot find module './codes.json' | |
at Function.Module._resolveFilename (module.js:542:15) | |
at Function.Module._load (module.js:472:25) |
require 'benchmark' | |
require 'delegate' | |
require 'mocha' | |
require 'simple_mock' | |
Benchmark.bm(10000) do |x| | |
x.report :mocha do | |
array = [1] | |
array.expects(:push).with(2).returns([1, 2]) | |
array.push(2) |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> | |
@interface ErrorFormatter : NSObject | |
@property (strong, nonatomic) NSError *error; | |
- (id)initWithError:(NSError *)error; | |
- (UIAlertView *)alert; |
crystal(test)$ bin/crystal spec spec/std/socket_spec.cr | |
clang: error: no such file or directory: '/Users/Tate/Code/manastech/crystal/src/ext/libcrystal.a' | |
Error: execution of command failed with code: 1: `cc -o "/Users/Tate/Code/manastech/crystal/.crystal/crystal-run-spec.tmp" "${@}" -rdynamic /Users/Tate/Code/manastech/crystal/src/ext/libcrystal.a -levent -lpcre -lgc -lpthread -ldl` |
#!/usr/bin/env ruby | |
require 'json' | |
if ARGV.size < 1 | |
puts "usage: #{__FILE__} <FILE1> [FILE2 ...]" | |
puts " eg: ./es_index_conflict_mapping applogs-2016.01.10.json applogs-2016.01.13.json applogs-2016.01.08.json applogs-2016.01.11.json applogs-2016.01.27.json" | |
abort | |
end |
TimeRange.prototype.getEnd = function() { | |
var end = this.end; | |
if (end) { | |
return end; | |
} else { | |
return parseInt(this.start) + 3600 // 1 hour | |
} | |
}; |