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
# capture every XXXX_just_later call and create a JustLaterJob | |
class ApplicationRecord < ActiveRecord::Base | |
self.abstract_class = true | |
def method_missing(method, *args, &block) | |
ms = method.to_s | |
if ms.end_with?('_just_later') | |
a = ms[0...-11] | |
if respond_to?(a) | |
JustLaterJob.perform_later(self, a, *args) | |
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
<div class="wrapper"> | |
<img class="logolo" src="https://daff.dev/mechadash/logo.gif"> | |
<div class="content" id="a1"> | |
<h2> | |
סקר ההוראה הגדול | |
</h2><br/> | |
שלום לכם וברוכים לסקר ההוראה הגדול. | |
באמצעות השאלות הקרובות שתשאלו נוכל לבנות את מערך הידע שיאפשר שיפור אינקרמנטלי במערכת ההחלטות הפדגוגיות אשר בונות את הקרקע לשינוי הראדיקלי הצפוי במערכת החינוך הירושלמית. | |
<button onclick="show(2)">התחל</button> | |
</div> |
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
hello |
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
module Action | |
end | |
module Carry | |
include Action | |
end | |
module ShowOff | |
include Action | |
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
package main | |
import "fmt" | |
func fibonaci(l uint) uint { | |
var fibo func(arr []uint, l uint) uint | |
var ret uint | |
fibo = func(arr []uint, l uint) uint { | |
if l > 2 { | |
ret = fibo([]uint{arr[1], (arr[0] + arr[1])}, l-1) |
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 main | |
import ( | |
"fmt" | |
) | |
func fibonaci(l uint) { | |
var fibo func(arr []uint, l uint) | |
fibo = func(arr []uint, l uint) { | |
if l == 0 { |
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
sentence = "there is a wild rose" | |
letters = sentence.gsub(' ','').split(//) |
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
# encoding: utf-8 | |
def אני(what) | |
"I #{what}" | |
end | |
def ♥(who) | |
"LOVE #{who}" | |
end | |
def אותך |
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
# encoding: utf-8 | |
def i(what) | |
"I #{what}" | |
end | |
def ♥(who) | |
"LOVE #{who}" | |
end | |
def you |
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 'active_support/all' | |
class AktivRekord | |
def self.has_many what | |
define_method(what.to_s.pluralize) do | |
what.to_s.classify.constantize.find_by_id(self.send("#{what.to_s.singularize}_id")) | |
end | |
end | |
end | |
class Person < AktivRekord |
NewerOlder