Skip to content

Instantly share code, notes, and snippets.

View Beace's full-sized avatar
🏠
Working from home

Beace Beace

🏠
Working from home
View GitHub Profile
@Beace
Beace / upload-github-release-asset.sh
Created November 9, 2018 08:23 — forked from stefanbuck/upload-github-release-asset.sh
Script to upload a release asset using the GitHub API v3.
#!/usr/bin/env bash
#
# Author: Stefan Buck
# License: MIT
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447
#
#
# This script accepts the following parameters:
#
# * owner
@Beace
Beace / golang_jwt_example.go
Created April 20, 2018 09:05 — forked from otiai10/golang_jwt_example.go
Golang JWT Example (2017/Oct/26)
package main
import (
"log"
jwt "github.com/dgrijalva/jwt-go"
)
type User struct {
Name string `json:"name"`
@Beace
Beace / javascript-reverse-arguments.js
Created March 21, 2017 03:03
javascript-high-order-function
function setColor(color, ele) {
console.log(arguments);
ele.style.color = 'blue';
}
var content = document.getElementById('content');
//setColor('blue', content);
function reverseArgs(fn) {
@Beace
Beace / controllers.js
Created May 21, 2016 13:53 — forked from aaronksaunders/controllers.js
Accessing MongoDB Example Ionic Framework - based on hello sample
angular.module('starter.controllers', [])
.controller('DashCtrl', function ($scope) {
})
.controller('FriendsCtrl', function ($scope, Friends) {
Friends.init()
.then(function (_data) {
console.log(_data.data.deployment_id);
Friends.all().then(function (_data) {
@Beace
Beace / SassMeister-input.scss
Created October 5, 2015 06:46
Generated by SassMeister.com.
// ----
// libsass (v3.3.0-beta2)
// ----
@Beace
Beace / SassMeister-input.scss
Created October 5, 2015 06:46
Generated by SassMeister.com.
// ----
// libsass (v3.3.0-beta2)
// ----
$color:#red;
p{
color:$color;
font:{
size:10px;
@Beace
Beace / SassMeister-input.scss
Created October 5, 2015 06:46
Generated by SassMeister.com.
// ----
// libsass (v3.3.0-beta2)
// ----
$color:#red;
p{
color:$color;
font:{
size:10px;
@Beace
Beace / SassMeister-input.scss
Created October 5, 2015 06:46
Generated by SassMeister.com.
// ----
// libsass (v3.3.0-beta2)
// ----
$color:#red;
p{
color:$color;
font:{
size:10px;
@Beace
Beace / SassMeister-input.scss
Created October 5, 2015 06:46
Generated by SassMeister.com.
// ----
// libsass (v3.3.0-beta2)
// ----
$color:#red;
p{
color:$color;
font:{
size:10px;
@Beace
Beace / SassMeister-input.scss
Created October 5, 2015 06:46
Generated by SassMeister.com.
// ----
// libsass (v3.3.0-beta2)
// ----
$color:#red;
p{
color:$color;
font:{
size:10px;