Instantly share code, notes, and snippets.

View genesis_public_key
0442e3c1cb73e8e6aadca166304723c2df62fe1311b2cb65fa97109eae79253077d6288e0094f96a51e04388005788d3d7dbea154e0dd3af4a5b3a217586bb5ceb
View cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
View components.my-uploader.js
import Ember from 'ember';
export default Ember.Component.extend({
method: null,
headers: null,
url: null,
success: null,
onSuccess() {
this.get('success')();
}
View generated.js
define('sonatribe-ui/pods/event/lineup/route', ['exports', 'ember', 'ember-infinity/mixins/route', 'ember-computed-decorators'], function (exports, Ember, InfinityRoute, observes) {
'use strict';
function _createDecoratedObject(descriptors) { var target = {}; for (var i = 0; i < descriptors.length; i++) { var descriptor = descriptors[i]; var decorators = descriptor.decorators; var key = descriptor.key; delete descriptor.key; delete descriptor.decorators; descriptor.enumerable = true; descriptor.configurable = true; if ('value' in descriptor || descriptor.initializer) descriptor.writable = true; if (decorators) { for (var f = 0; f < decorators.length; f++) { var decorator = decorators[f]; if (typeof decorator === 'function') { descriptor = decorator(target, key, descriptor) || descriptor; } else { throw new TypeError('The decorator for method ' + descriptor.key + ' is of the invalid type ' + typeof decorator); } } } if (descriptor.initializer) { descriptor.value = descriptor.initializer.call(target); } Obj
View compued.js
import Ember from 'ember';
import InfinityRoute from "ember-infinity/mixins/route";
import computed from 'ember-computed-decorators';
import observes from 'ember-computed-decorators';
export default Ember.Route.extend(InfinityRoute, {
slug: null,
selected: [],
model() {
var slug = this.modelFor('event').params.slug;
View hash.js
import Ember from 'ember';
import ajax from 'ic-ajax';
var inject = Ember.inject;
export default Ember.Service.extend({
sonatribeSession: inject.service(),
getSearchSuggestons(session, term, eid){
return this._getSuggestionsHash(term, eid)
.then((hash) => {
return Ember.run(function(){
View gist:dada0dc414caa6fd772f
{
upcomingEvents: [
{
name: "Glastonbury 2015",
start: "2015-06-23T23:00:00.000Z",
address1: null,
country: null,
postcode: null,
mainImage: null,
slug: "glastonbury-2015"
View m2.cs
class Program
{
private const string Xpath = "//*[@id=\"cwos\"]";
static void Main(string[] args)
{
var val = string.Empty;
var num1 = Convert.ToInt32(args[0]);
var num2 = Convert.ToInt32(args[1]);
View m1.cs
using System;
using System.Collections.Generic;
public static class Extensions{
public static IEnumerable<int> To(this int from, int to)
{
for (int i = from; i <= to; i++)
{
yield return i;
}
View gist:5ce5ae593daeeae23f22
sonatribe=> \dt public.*
List of relations
Schema | Name | Type | Owner
--------+----------------------------------------+-------+--------
public | artist | table | stuser
public | artist_tags__tag_artists | table | stuser
public | attempt | table | stuser
public | auth | table | stuser
public | discoursesso | table | stuser
public | eventInstance | table | stuser