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 random | |
| import itertools | |
| import nltk | |
| from terminaltables import AsciiTable | |
| def aff(matrix, voc): | |
| m = matrix.copy() | |
| m = [[word] + row for row, word in zip(m, voc)] |
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 Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| classNames: ['ui', 'modal'], | |
| didInsertElement () { | |
| let _this = this; | |
| this.$().modal({ | |
| // When the modal is hidden, we send an action and update its state | |
| onHide: function () { |
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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| elements: [ | |
| {name: "Uranium"}, | |
| {name: "Plutonium"}, | |
| {name: "Francium"}, | |
| {name: "Einstanium"} | |
| ], | |
| searchQuery: '' |
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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle' | |
| }); |
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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| init() { | |
| this._super(); | |
| // alert(this.get('p')); | |
| }, | |
| appName: 'Ember Twiddle', | |
| queryParams: ['p'] | |
| }); |
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
| FROM alpine | |
| COPY configure-node.sh configure-node.sh | |
| CMD ["/bin/sh", "configure-node.sh"] |
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
| (() => { | |
| // Extracted from Samogot's LibDiscordInternals for BetterDiscord. | |
| const req = typeof(webpackJsonp) === "function" ? webpackJsonp([], { | |
| '__extra_id__': (module, exports, req) => exports.default = req | |
| }, ['__extra_id__']).default : webpackJsonp.push([[], { | |
| '__extra_id__': (module, exports, req) => module.exports = req | |
| }, [['__extra_id__']]]); | |
| delete req.m['__extra_id__']; | |
| delete req.c['__extra_id__']; | |
| const find = (filter, options = {}) => { |
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
| package main | |
| import ( | |
| "encoding/base32" | |
| "encoding/binary" | |
| "fmt" | |
| ) | |
| func HashChatId(v uint64) string { | |
| var b [8]byte |