Following proposal by @littledan
THIS NO LONGER MATCHES THE PROPOSED API AND SHOULD NOT BE USED
Just proof-of-concept. Do not use in production.
# Create a patch file | |
diff -u file.old file.new > file.patch | |
# Apply a patch | |
patch < file.patch | |
# Create a backup before applying patch | |
patch -b < file.patch | |
# Create a versioned backup before applying patch |
$size--content: 1080px; | |
$size--column-gutter: 16px; | |
$size--columns: 8; | |
@function fluid-width($span) { | |
@return calc(#{percentage($span/$size--columns)} - #{$size--column-gutter}); | |
} | |
.container { | |
margin: 0 $size--column-gutter * 2; |
Following proposal by @littledan
THIS NO LONGER MATCHES THE PROPOSED API AND SHOULD NOT BE USED
Just proof-of-concept. Do not use in production.
Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.
My 3 developers team has just developed React.js application with 7668
lines of CSS (and just 2 !important
).
During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.
Here are main principles we use to write CSS for modern (IE11+) browsers:
#!/usr/bin/env bash | |
echo -e "\033[0mNC (No color)" | |
echo -e "\033[1;37mWHITE\t\033[0;30mBLACK" | |
echo -e "\033[0;34mBLUE\t\033[1;34mLIGHT_BLUE" | |
echo -e "\033[0;32mGREEN\t\033[1;32mLIGHT_GREEN" | |
echo -e "\033[0;36mCYAN\t\033[1;36mLIGHT_CYAN" | |
echo -e "\033[0;31mRED\t\033[1;31mLIGHT_RED" | |
echo -e "\033[0;35mPURPLE\t\033[1;35mLIGHT_PURPLE" | |
echo -e "\033[0;33mYELLOW\t\033[1;33mLIGHT_YELLOW" |
TOTALLY SUPER DUPER NOT MY WORK! Trying to illuminate how FizzyText (seen here, source here, isolated from dat.GUI dependency here) works. Original appears to have been written by George Michael Brower.
In the original, which I find brilliant:
import UIKit | |
import AVFoundation | |
import AVKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
let item = AVPlayerItem(URL: NSURL(string: "http://i.imgur.com/4WHLcYw.mp4")!) |
function segmentArray(arr,segmentSize) { | |
segmentSize = Math.max(1,Math.min(+segmentSize||0,arr.length)); | |
return Array.apply(null,{length:Math.ceil(arr.length / segmentSize)}).map(function(_,i){ | |
return arr.slice(i*segmentSize,(i+1)*segmentSize); | |
}); | |
} | |
// lift `serviceCall(..)` | |
function promiseServiceCall(v) { | |
return new Promise(function(resolve,reject){ |
@mixin grid($cols: 1, $gutter: 0, $childs: ".item") { | |
width: auto; | |
margin-right: -$gutter; | |
#{$childs} { | |
float: left; | |
width: (100% / $cols); | |
padding-right: $gutter; | |
background-clip: content-box; |
You can't uninstall, you can't reset your profile and as long as your pin is valid on the Nike server it will continue to log your workouts to some diconnected account on their end. To fix this, you have to get your iPhone to invalidate your account.
Install the trial version of Charles http://www.charlesproxy.com/download/
Download the Charles certs and install them on your iPhone http://www.charlesproxy.com/ssl.zip
Create a local map in Charles from https://nikeplus.nike.com/nikeplus/v1/services/device/get_pin_status.jsp
to a local file with the following content.