a helpful primer for users sick of git's poorly-named commands
I've used Git since 2011, and this is the stuff that I've always had to Google to remember. I hope it helps you not hate Git so much.
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Ply • TodoMVC</title> | |
<link rel="stylesheet" href="app/app.css"> | |
<link rel="import" href="../../ply-comp/"> | |
<link rel="import" href="ply-todos/"> |
@mixin category-colors($after: false) | |
@each $category in $categories | |
@if $after == true | |
.cat-#{nth($category, 1)}:after | |
background-color: nth($category, 2) | |
@else | |
.cat-#{nth($category, 1)} | |
background-color: nth($category, 2) |
import { inspect } from 'util'; | |
import { | |
graphql, | |
GraphQLEnumType, | |
GraphQLID, | |
GraphQLInterfaceType, | |
GraphQLObjectType, | |
GraphQLList, | |
GraphQLNonNull, | |
GraphQLSchema, |
import time | |
import sys | |
import os | |
import ctypes | |
ES_CONTINUOUS = 0x80000000 | |
ES_AWAYMODE_REQUIRED = 0x00000040 | |
ES_SYSTEM_REQUIRED = 0x00000001 | |
ES_DISPLAY_REQUIRED = 0x00000002 |
// ---- | |
// Sass (v3.3.3) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
%transition { | |
-webkit-transition :0.5s ease all; | |
transition :0.5s ease all; | |
position :absolute; | |
left :0; |
var ngAppElem = angular.element(document.querySelector('[ng-app]') || document); | |
window.$injector = ngAppElem.injector(); | |
window.inject = $injector.invoke; | |
window.$rootScope = ngAppElem.scope(); | |
// getService('auth') will create a variable `auth` assigned to the service `auth`. | |
var getService = serviceName => | |
inject([serviceName, s => window[serviceName] = s]); |
' VBS Script to get the Windows(R) 7 Product Key from a PC's registry. | |
' | |
' Save the VBScript as "getWin7Key.vbs" somewhere on your Windows7 PC. | |
' Now, when you double-click the local script file an alertbox pops up | |
' displaying the product key stored in the machine's Windows registry. | |
Set WshShell = WScript.CreateObject("WScript.Shell") | |
KeyPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId" | |
MsgBox ExtractKey(WshShell.RegRead(KeyPath)) |
In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
query
mutation
Reference implementation also adds the third type: subscription
. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
{ | |
"name": "your-app-name", | |
"version": "0.0.1", | |
"private": true, | |
"dependencies": { | |
"http-proxy": "0.8.x", | |
"connect": "2.3.x" | |
} | |
} |