Skip to content

Instantly share code, notes, and snippets.

<?php
/*
░░░░░░░░░▄░░░░░░░░░░░░░░▄░░░░
░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌░░░
░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐░░░
░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐░░░
░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐░░░
░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌░░░
░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌░░
//
// main.m
//
// Created by Nico Prananta on 10/30/13.
// Copyright (c) 2013. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
@nicnocquee
nicnocquee / high-coverting-checkout.md
Last active August 29, 2015 13:57
7 Proven Secrets of High-Converting Checkouts

http://www.copyblogger.com/high-converting-checkouts/

  1. High-converting checkouts make prices more palatable.
    • prices when they are listed without dollar signs
    • decreasing the size of the type in which you present a price can tweak the impression of the price amount — as if a price that looks small is small, and a price that looks big is big.
  2. High-converting checkouts include free shipping (not just % off)
    • "we’ll pay your shipping."
  3. High-converting checkouts make account creation feel less painful.
    • “Continue” button brought in 45 percent more sales than a “Register” button.
  • Modifying the language on the button to remove a friction-y sense of doing work
Scared Of Failing? Ask Yourself These 6 Fear-Killing Questions WARREN BERGER, AUTHOR OF A MORE BEAUTIFUL QUESTION, COLLECTED THE PROVOCATIVE QUESTIONS TOP DESIGNERS, TECH INNOVATORS, AND ENTREPRENEURS ASK THEMSELVES TO SPARK CREATIVITY.
WRITTEN BY Warren Berger
[Editor’s note: The following is the first in a three-part series of posts adapted from Warren Berger’s new book, A More Beautiful Question (Bloomsbury), for which he spoke with top designers, tech innovators, entrepreneurs, and leading creative thinkers to explore the art (and innovative potential) of asking the right questions.]
***
Here’s a question: What would you attempt to do if you knew you could not fail?
If that question seems familiar, it should. One of the hallmarks of a powerful question is that it gets passed around, and among innovators I spoke with in the tech industry, this one has been making the rounds perhaps more than any other--quoted by everyone from Google’s Regina Dugan to Sebastian Thrun at Udacity and Airbnb co-founder Joe Ge
@nicnocquee
nicnocquee / how to retina on non.txt
Created May 14, 2014 08:31
How to test retina web on non-retina display
You actually can using Firefox:
Go to "about:config"
Find "layout.css.devPixelsPerPx
Change it to your desired ratio (1 for normal, 2 for retina, etc. -1 seems to be Default.)
http://stackoverflow.com/questions/15551287/how-to-test-a-website-for-retina-on-windows-without-an-actual-retina-display
@nicnocquee
nicnocquee / photos_to_video.sh
Last active August 29, 2015 14:01
Convert photos to video using ffmpeg. 2 photos per second.
ffmpeg -f image2 -r 2 -i %*.JPG -r 30 -s 1920x1080 -c:v libx264 out.mp4
@nicnocquee
nicnocquee / ubuntu_picuntu_wifi_connect.sh
Created June 12, 2014 08:43
Ubuntu / Picuntu connect to wifi
sudo iwconfig wlan0 essid ssid_name key s:ascii_13_chars [1]
sudo dhclient wlan0
@nicnocquee
nicnocquee / set_time_ubuntu.md
Created June 16, 2014 01:47
Set time in ubuntu command line

sudo date newdatetimestring

where newdatetimestring has to follow the format nnddhhmmyyyy.ss which is described below

nn is a two digit month, between 01 to 12

dd is a two digit day, between 01 and 31, with the regular rules for days according to month and year applying

hh is two digit hour, using the 24-hour period so it is between 00 and 23

@nicnocquee
nicnocquee / download_wwdc_14_sd.sh
Created June 26, 2014 09:08
Script to Download WWDC 14 Videos SD
curl https://developer.apple.com/videos/wwdc/2014/ | grep -iIoh '|.*http.*._sd_.*dl=1' | sed -e 's/|.*"//g' | sed -e 's/\?dl=1//g'|xargs -n1 curl --remote-name
@nicnocquee
nicnocquee / speedup_movie_ffmpeg.sh
Created June 26, 2014 14:30
Script to speed up/down movie using ffmpeg. To change speed to 2x, change 10/13 to 0.5 and 1.3 to 2.
ffmpeg -i input_name -filter_complex "[0:v]setpts=10/13*PTS[v];[0:a]atempo=1.3[a]" -map "[v]" -map "[a]" output_name