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
require("./reset.scss"); | |
require("./crotchzombie.scss"); | |
$(window).ready(function() { | |
const $logo = $('#logo'); | |
let played = false; | |
function playAudio() { |
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
orker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options) | |
jhead worker: `jhead` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options) | |
jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim => false` through options) | |
svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options) | |
.pngquant worker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options) | |
jhead worker: `jhead` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options) | |
jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim |
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
git grep "plugin-outlet" | |
app/assets/javascripts/admin/templates/admin.hbs: {{plugin-outlet "admin-menu" tagName="li"}} | |
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6: {{plugin-outlet "evil-trout"}} | |
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6: {{#plugin-outlet "hello-world"}} | |
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6: {{/plugin-outlet}} | |
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6:Ember.HTMLBars._registerHelper('plugin-outlet', function(params, hash, options, env) { | |
app/assets/javascripts/discourse/templates/components/edit-category-settings.hbs:{{plugin-outlet "category-custom-settings"}} | |
app/assets/javascripts/discourse/templates/components/topic-category.hbs:{{plugin-outlet "topic-category"}} | |
app/assets/javascripts/discourse/templates/composer.hbs: {{plugin-outlet "composer-open"}} | |
app/assets/javascripts/discourse/templates/composer.hbs: {{plugin-outlet "composer-fields"}} |
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
def make_new(obj, hash) | |
new_ob = type.new | |
# Two approaches - 1st: You can use the array notation [] on an activerecord to use it like a hash | |
hash.each do {|key, value| new_ob[key] = value } | |
# Or you can send to the method using period: | |
hash.each do {|key, value| new_ob.send("#{key.to_s}=", value) } | |
end |
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
Account.transaction do | |
david.withdrawal(100) | |
mary.deposit(100) | |
end |
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
{{#each suggestedUsers}} | |
<li> | |
{{selectedUser}} | |
<a href='#' {{action completeUser}} {{bindAttr data-username="this"}}>{{this}}</a> | |
</li> | |
{{/each}} |
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
Ember.Handlebars.registerHelper 'unboundIf', (property, options) -> | |
context = (options.contexts && options.contexts[0]) || this | |
normalized = Ember.Handlebars.normalizePath(context, property, options.data) | |
if (Ember.get(normalized.root,normalized.path,options)) | |
return options.fn(context,property) | |
else | |
return options.inverse(context,property) | |
Ember.Handlebars.registerHelper 'unboundUnless', (property, options) -> |
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
# | |
# Example usage: | |
# | |
# require 'rubygems' | |
# require 'date' | |
# require 'socket' | |
# require 'celluloid' | |
# require 'nntp_connection' | |
# | |
# nntp = NNTPConnection.new('news.supernews.com', 119, 'username', 'password') |
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
# Keep everything in a database transaction | |
Player.transaction do | |
# Find the player's current goal | |
goal = player.current_goal | |
# Make sure we don't reward goals that have been already been completed | |
unless goal.completed? | |
goal.update_column :completed, true | |
player.score += goal.score |
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
en: | |
try_discourse: | |
system_messages: | |
usage_tips: | |
text_body_template: | | |
WELCOME TO TRY OMG!!!?!?!!?!? | |
This private message has a few quick tips to get you started: |