This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am sberan on github. | |
* I am sberan (https://keybase.io/sberan) on keybase. | |
* I have a public key ASAgWjuB0D4sPz_GT2wSKMBIW6XsAFnuOcQkY3er2U9AWwo | |
To claim this, I am signing this object: |
This file contains 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
with board_rows as ( | |
SELECT * FROM ( | |
VALUES (1, true , true , false, false), | |
(2, true , true , false, false), | |
(3, true , false, false, false), | |
(4, false, false, false, false)) as rows | |
), | |
board_positions as ( | |
select row.column1 as row, substr(entry.key, 7)::integer - 1 as col, entry.value::text::boolean as alive from board_rows row, jsonb_each(row_to_json(row.*)::jsonb - 'column1') entry | |
), |
This file contains 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 token = process.argv[2]; | |
var Botkit = require('botkit'); | |
var controller = Botkit.slackbot(); | |
var bot = controller.spawn({ token }) | |
var q = require('q'); | |
var exec = require('executive'); | |
var quote = require('shell-quote').quote; | |
if (!token) { | |
console.log(` |
This file contains 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 Ember from 'ember'; | |
export default Ember.Component.extend( { | |
vals: function() { | |
return [{}] | |
}.property('val'), | |
didInsertElement() { | |
this.$('input').focus() | |
this.set('val', ""); |
This file contains 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
package com.example.FireBaseTest; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.text.TextUtils; | |
import android.widget.EditText; | |
import android.widget.TextView; | |
import butterknife.InjectView; | |
import butterknife.OnClick; | |
import butterknife.Views; |
This file contains 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 java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Map; | |
import java.util.Set; | |
import java.util.stream.Stream; | |
/* Just a fake DBHandle for example's sake */ | |
class DBHandle { | |
public <T> QueryBuilder<T> query(String q) { | |
return new QueryBuilder<>(); |
This file contains 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
$.ajax('angular.md', { | |
async: false, | |
success: function(data) { | |
$.each(data.split('--slide--'), function(i, slide) { | |
var section = $('<section></section>'); | |
$.each(slide.split('--sub--'), function(i, text) { | |
var sub = $('<section data-markdown></section>').html(text); | |
$(section).append(sub); | |
}); | |
$('.slides').append(section); |
This file contains 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
#{ui.table clientRoles, id:"clientRoles" } | |
#{ui.column "clientName", title:"" /} | |
#{ui.column "owner", title:"Owner R/W" /} | |
#{ui.column "communicationManager", title:"Communication R/W" /} | |
#{ui.column "contentManager", title:"Content R/W" /} | |
#{ui.column "populationManager", title:"Population R/W" /} | |
#{ui.column "staff", title:"Staff R/O" /} | |
#{ui.column title:"Delete"} | |
<form action... | |
</form> |
This file contains 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
<form action="/admin/clients/${client.id}/keys/${key.id}" method="POST"> | |
<input type="hidden" name="x-http-method-override" value="DELETE"/> | |
<button type="submit">Delete This Key!</button> | |
</form> |
This file contains 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
aggregate { result => | |
+ result.student.grade > 8 | |
+ result.score < 60 | |
+ result.student.org.orgType.code <> "Non-Public" | |
(result.student.org.code, result.student.grade) | |
} | |
NewerOlder