This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
reset="\033[0m" | |
red="\033[31m" | |
green="\033[32m" | |
yellow="\033[33m" | |
cyan="\033[36m" | |
white="\033[37m" | |
gpg_key=9D41F3C3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import { noop, get } from 'lodash' | |
import { startLoader, stopLoader } from 'actions/loaders' | |
export default store => next => action => { | |
if (!action.type.startsWith('API:')) { | |
return next(action) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/api/socket.js b/src/api/socket.js | |
new file mode 100644 | |
index 0000000..8fb6278 | |
--- /dev/null | |
+++ b/src/api/socket.js | |
@@ -0,0 +1,24 @@ | |
+import socketIo from 'socket.io' | |
+ | |
+import config from 'config' | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var rev = require('gulp-rev-all'); | |
var css = require('gulp-minify-css'); | |
var img = require('gulp-imagemin'); | |
var rs = require('run-sequence'); | |
var del = require('del'); | |
gulp.task('image', function () { | |
return gulp.src('image.jpeg') | |
.pipe(img({ progressive: false })) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('test') | |
.controller('HomeCtrl', function ($scope, $http, Socket) { | |
var vm = this; | |
vm.items = []; | |
vm.lastMsg = ''; | |
$http.get('/api/items').success(function (res) { | |
vm.items = res; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tooltip] { | |
display: inline; | |
position: relative; | |
cursor: pointer; | |
margin-right: 7px; | |
&:hover:before { | |
content: ''; | |
display: block; | |
position: absolute; | |
border-right: 5px solid transparent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Answer Accept Rate | |
// @version 0.1 | |
// @description Get the answer accept rate of a user on StackExchange | |
// @namespace apercu.io | |
// @author Balthazar Gronon | |
// @license MIT | |
// @include http://stackoverflow.com/* | |
// @include http://ux.stackexchange.com/* | |
// @include http://security.stackexchange.com/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Question Accept Rate | |
// @version 0.5 | |
// @description Display a user's Stack Exchange question accept rate | |
// @namespace k0tFZXXD | |
// @author Michael Hampton | |
// modified by Balthazar Gronon | |
// @license GNU GPL v3 or later (http://www.gnu.org/copyleft/gpl.html) | |
// @include http://stackoverflow.com/* | |
// @include http://ux.stackexchange.com/* |
NewerOlder