Enjoy it ! :P Without image, without javascript, handmade Sass only.
A Pen by AaronChuo (小狂) on CodePen.
| // Generated on 2013-03-01 using generator-webapp 0.1.5 | |
| 'use strict'; | |
| var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
| var mountFolder = function (connect, dir) { | |
| return connect.static(require('path').resolve(dir)); | |
| }; | |
| // # Globbing |
| tell application "Messages" | |
| set isAppRunning to false | |
| tell application "System Events" | |
| if (exists process "Messages") then | |
| set isAppRunning to true | |
| end if | |
| end tell | |
| if isAppRunning is false then |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "precise32" | |
| config.vm.provider :virtualbox do |v| | |
| v.customize ["modifyvm", :id, "--memory", 256] | |
| v.customize ["modifyvm", :id, "--nictype1", "virtio"] | |
| v.customize ["modifyvm", :id, "--nictype2", "virtio"] | |
| v.gui = true # for debug | |
| end |
| defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE | |
| To revert | |
| defaults delete com.apple.desktopservices DSDontWriteNetworkStores |
| Implementing your own cache in AngularJs is quite easy. | |
| Just use $cacheFactory: | |
| app.factory('myService', function($resource, $cacheFactory) { | |
| var cache = $cacheFactory('myService'); | |
| var User = $resource('/user/:userId', {userId:'@id'}); | |
| return { | |
| getResource: function(userId) { | |
| var user = cache.get(userId); |
Enjoy it ! :P Without image, without javascript, handmade Sass only.
A Pen by AaronChuo (小狂) on CodePen.
| var SCHEDULE = { | |
| "events": [ | |
| { | |
| "eventId": "9d831af2-60db-4dfa-86cf-5b10a130aadd", | |
| "channelId": "CH-1", | |
| "groupId": "GR-1", | |
| "start": "2016-04-18T00:01:00.000Z", | |
| "title": "Sleek Steel Cheese", | |
| "end": "2016-04-18T00:42:00.000Z" | |
| }, |
| var Nightmare = require('nightmare'); | |
| var nightmare = Nightmare({ | |
| show: true, | |
| openDevTools: true, | |
| 'webPreferences': { | |
| 'webSecurity': false | |
| } | |
| }); | |
| <meta http-equiv="Content-Security-Policy" content="default-src * data: * gap: https://ssl.gstatic.com 'unsafe-eval'; style-src * 'unsafe-inline'; media-src *; img-src *"> |
| { | |
| "name": "3x1010-italo-nightmare", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "", | |
| "license": "UNLICENSED", |