Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am madsleejensen on github.
  • I am madsleejensen (https://keybase.io/madsleejensen) on keybase.
  • I have a public key ASDkYV5Tch_PB-n9e9paFH_ZTjpCAOAxNeeoCgs5xcIBoQo

To claim this, I am signing this object:

format_version: '3'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: fastlane
app:
envs:
- FASTLANE_XCODE_LIST_TIMEOUT: '120'
- SOURCE_DIR: $BITRISE_SOURCE_DIR
- MOBILE_DIR: $BITRISE_SOURCE_DIR/mobile
- MOBILE_BUILD_DIR: $BITRISE_SOURCE_DIR/mobile/build/
- MOBILE_IOS_DIR: $BITRISE_SOURCE_DIR/mobile/ios
@madsleejensen
madsleejensen / circle.yml
Created June 12, 2017 13:21
circleci docker-compose laravel example
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
- sudo curl -L -o /usr/local/bin/docker-compose https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m`
- sudo chmod +x /usr/local/bin/docker-compose
services:
- docker
dependencies:
override:
# generate a .env file by interpolating the template (.env.example) with environment variables (defined in circleci)
private void addRoskildeGroundOverlay() {
int[] mapResourceIds = {
R.drawable.map_mdpi,
R.drawable.map_hdpi,
R.drawable.map_xhdpi,
R.drawable.map_xxhdpi,
};
int startIndex = (getResources().getDisplayMetrics().densityDpi / 160) - 1;
startIndex = Math.min(mapResourceIds.length - 1, startIndex);
$products = [
[
'name' => 'Økologisk hotdog',
'description' => 'Lorem ipsum',
'price' => 65.00,
'image_url' => 'https://www.dropbox.com/s/ftvplfiohzko4ks/10472758_967766076629409_6360563572908362411_o.jpg?dl=1',
'category' => 'FOOD'
],
[
'name' => 'Spelt croissant',
<script>
// place in "FOOTER" custom code in webflow admin.
Webflow.push(function() {
function runParallax() {
var top = $(window).scrollTop();
var height = $(window).height();
$('.section, .hero-section').each(function() {
var element = $(this);
var distanceFromTop = element.offset().top - top;
@madsleejensen
madsleejensen / gist:2dc85cc546ec5b046e7b
Created February 15, 2016 17:09
UITableView - Animate Cells In
- (void)animateIn {
// animate in from the sides
NSArray *visibleCells = [self visibleCells];
for (NSUInteger index = 0; index < visibleCells.count; index++) {
CGFloat delay = (index * 0.04f) + 0.3f;
UITableViewCell *cell = visibleCells[index];
cell.transform = CGAffineTransformMakeTranslation([UIScreen mainScreen].bounds.size.width - 120.0f, 0);
cell.alpha = 0.0f;
[UIView animateWithDuration:0.9f delay:delay usingSpringWithDamping:0.8f initialSpringVelocity:0.1f options:UIViewAnimationOptionCurveEaseOut | UIViewAnimationOptionAllowUserInteraction animations:^{
# grunt-newer:
# Check for newer @import .less files example
# See: https://github.com/tschaub/grunt-newer/issues/29
newer: {
options: {
/**
* when changing a less file, we run an addional check on all the *.less files to see if they are @importing a modified *.less file, and if so we include it in the files which less task should execute.
*/
override: function(details, shouldIncludeCallback) {