If you have a CommonJS module that exposes properties that are expensive to create (e.g. other CommonJS modules or some external resource), you can load them lazy using Object.defineProperty()
.
it('create with 2 items', function () { | |
item.set({ | |
title: "The cloud atlas", | |
author: "David Mitchell" | |
}); | |
item.save(); | |
item.set({ | |
title: "Design of design", | |
author: "Brooks" |
UPDATE: With the assets command of the TiCons CLI / Module this can be done even simpeler by calling $ ticons assets
or an alloy.ymk
using:
task("pre:load", function(event, logger) {
require('ticons').assets();
});
#!/bin/bash | |
for f in *.mp4; do | |
duration=$(ffmpeg -i "$f" 2>&1 | grep "Duration"| cut -d ' ' -f 4 | sed s/,//) | |
length=$(echo "$duration" | awk '{ split($1, A, ":"); print 3600*A[1] + 60*A[2] + A[3] }' ) | |
trim_start=0 | |
trim_end=$(echo "$length" - 18 - "$trim_start" | bc) | |
ffmpeg -ss "$trim_start" -i "$f" -c copy -map 0 -t "$trim_end" "${f%.mp4}-trimmed.mp4" | |
done |
*.strings utf16 diff=localizablestrings |
# General ENV stuff used for all environments (brands) | |
WORKSPACE=YouApp.xcworkspace |
This is a proposal for a ⚡lightning talk at the Reactive 2017 conference.
🌟 Please star it so we can make it to the top 10 and be choosen to make it.
1 year ago our design team came with the idea of redesigning our frontend... We decided to do it with React. One year later and some millions of satisfied users it's time to share the amazing and hard lessons we have learned. Some of those lessons are about:
- SSR and SPA SEO
This is how I configured the deploy of my rails apps to AWS Elastic Beanstalk through CircleCI 1.0.
If you are using the Circle CI 2.0, take a look at this article from ryansimms
On Project Settings > Environment Variables add this keys:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
The aws user must have the right permissions. This can be hard, maybe, this can help you.
-server | |
-Xms2048m | |
-Xmx2048m | |
-XX:NewSize=512m | |
-XX:MaxNewSize=512m | |
-XX:PermSize=512m | |
-XX:MaxPermSize=512m | |
-XX:+UseParNewGC | |
-XX:ParallelGCThreads=4 | |
-XX:MaxTenuringThreshold=1 |