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
------------------------------ MODULE scratch ------------------------------ | |
EXTENDS Integers, TLC | |
\* Zmienne | |
VARIABLE x,step,increase_by,init | |
\* Stałe - podane przez użytkownika | |
CONSTANT steps,y_range | |
\* Tablica zmiennych - jako ułatwienie, bo każdy |
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
// Person here is shallow on many levels | |
struct Person { name: String, attractiveness: u8 } | |
impl Person { | |
fn glance(&self, someone: &Person) { | |
let look = match(someone.attractiveness) { | |
0 ..= 2 => "...uuhh..", | |
3 ..= 5 => "good. Definitelly good!", | |
6 ..= 8 => "great!", | |
9 ..= 10 => "amazing!!", | |
11 | _ => { |
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
#!env ruby | |
# -*- coding: utf-8 -*- | |
ile = ARGV[0].to_i | |
ile = 1 if ile == 0 | |
opcje = <<EOT | |
Bar mleczny | |
Amrit |
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
defmodule FizzBuzz do | |
def print(no) when (rem(no, 15) == 0) do | |
IO.puts "FizzBuzz" | |
end | |
def print(no) when (rem(no, 3) == 0) do | |
IO.puts "Fizz" | |
end |
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', | |
model: "a" | |
}); |
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({ | |
actions: { | |
switchLanguage: function() { | |
var t = this.get('translator'); | |
if(t.lang === "t1") { | |
t.changeLanguage("t2"); | |
} else { | |
t.changeLanguage("t1"); |
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
test_dir1:1000:1000 | |
test_dir2:1001:1001 | |
test_dir3:1002:1002 |
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
;Setting the package archives | |
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") | |
("marmalade" . "http://marmalade-repo.org/packages/") | |
("melpa" . "http://melpa.milkbox.net/packages/"))) | |
(setq package-enable-at-startup nil) | |
(package-initialize) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. |
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
#include <stdio.h> | |
#include <wchar.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include "hidapi.h" | |
#define MAX_STR 255 | |
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
App.QrTransform = DS.Transform.extend({ | |
deserialize: function(serialized) { | |
return 30; | |
}, | |
}); |
NewerOlder