The best iPhone 6 feature is the round shape: finally we can draw it with css! :D
--
Please vote it for the AWWWARDS conference competition: http://conference.awwwards.com/code/fabrizio-bianchi
--
The best iPhone 6 feature is the round shape: finally we can draw it with css! :D
--
Please vote it for the AWWWARDS conference competition: http://conference.awwwards.com/code/fabrizio-bianchi
--
{ | |
// Sample configuration for app in /home/myuser/app dir | |
"uid": "app", | |
"max": 5, // restart the app successively maximum of 5 times | |
"spinSleepTime": 1000, // time to wait until a next restart is attempted (in ms) | |
"append": true, // append the logs, do not overwrite | |
"watch": true, // watch for changes and restart if they occur | |
"script": "server.js", // main startup script (almost like issuing node server.js) | |
"sourceDir": "/home/myuser/app", // the dir where your entire app code resides (dir structure is recursively traversed) | |
"args": ["--myAPIKey", "xBlzdn84fa"] // pass any arguments to your app |
"""Order a queryset by last_active and make null values sort last.""" | |
import datetime | |
from django.db.models.functions import Coalesce | |
from app import models | |
# Coalesce works by taking the first non-null value. So we give it |
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
} | |
# Usage | |
# $ get_latest_release "creationix/nvm" | |
# v0.31.4 |
#!/bin/bash | |
# by Andreas Monitzer (@anlumo1) and Pepi Zawodsky (@MacLemon) | |
# | |
# This script published under WTF license | |
# http://en.wikipedia.org/wiki/WTFPL | |
# Improvements to this script are welcome though. | |
# Augments the Info.plist with a lot of nice stuff. | |
# It's suggested to call this script from a "run script" build phase, not copy the script's contents there. |
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
import React, { Component, createElement } from "react"; | |
import Enzyme, { shallow, render, mount } from "enzyme"; | |
import Adapter from "enzyme-adapter-react-16"; | |
import { action, observable, computed } from "mobx"; | |
import { observer } from "mobx-react"; | |
Enzyme.configure({ adapter: new Adapter() }); | |
class Store { | |
@observable val = 0; | |
} |
https://laptop.ninja/how-to-install-ubuntu-on-a-macbook-pro/ | |
test |