Skip to content

Instantly share code, notes, and snippets.

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

Sorin Gitlan esgy

🏠
Working from home
View GitHub Profile
@sunny-g
sunny-g / meteor-github-oauth.js
Last active June 12, 2017 06:37
How to create Github OAuth credentials and access tokens with Meteor, without logging-in the user nor using accounts-github
if (Meteor.isClient) {
Template.hello.events({
'click .github': function() {
// initiate the OAuth process:
// ask for the desired permissions
// run the callback after the user authorizes the app
// https://github.com/meteor/meteor/blob/devel/packages/github/github_client.js#L8
Github.requestCredential({
loginStyle: 'popup',
requestPermissions: ['gist']
@hemanth
hemanth / Gruntfile.js
Created December 31, 2013 14:13
grunt vs gulp
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: ';'
},
dist: {
src: ['src/**/*.js'],
dest: 'dist/<%= pkg.name %>.js'
@matb33
matb33 / README.md
Created August 28, 2013 01:17
Meteor Template layouts with yield keyword, inspired by Iron Router. Will eventually make a proper repo and port to Meteorite... stay tuned

Meteor Template layouts with yield

Example usage:

Layout.helper("modal", function (options) {
  return {
    bgcolor: options.bgcolor || "#fff",
    layout: options.layout || "modalLayout"
 };
@joshkurz
joshkurz / app.js
Created August 9, 2012 03:21
AngularJs-twitterBootstrap-wysiHtml5
var demoApp = angular.module('demoApp', ['ngResource'], function($locationProvider) {
$locationProvider.hashPrefix('');
});
function MainCtrl($scope, Serv) {
$scope.selectedItem = {
value: 0,
label: ''
};
$scope.Wrapper = Serv;