Skip to content

Instantly share code, notes, and snippets.

Working from home

Daniel odyright

Working from home
View GitHub Profile
odyright / NVOS.JsonParse.pas
Created May 20, 2020
classe distincte pour Développement d’une application pour analyser les données de Rosprirodnadzor
View NVOS.JsonParse.pas
unit NVOS.JsonParser;
uses System.JSON.Builders,
View Maija_header.scss
.header {
position: fixed;
background-color: #000;
width: 100%;
height: 80px;
max-width: 1230px;
left: 50%;
top: 0;
transform: translateX(-50%) translateX(-25px);
z-index: 7;
/* css prefix */
div {
@include css3-prefix(transform, scale3d(2.5, 2, 1.5));
@mixin css3-prefix($prop, $value) {
-webkit-#{$prop}: #{$value};
-moz-#{$prop}: #{$value};
-ms-#{$prop}: #{$value};
odyright / example.scss
Created Oct 8, 2019 — forked from rob-kistner/example.scss
Compiles whole font-family @font-face rules. Uses a mixin and (preferably) separate file for each font-family and compiles css with @font-face rules for each weight/style. example.scss shows a font-family file, the other is the actual mixin.
View example.scss
// example font-face file
/* -----------------------------------------
Geometrica Font
// Source:
// -------
// DesignCuts: Exceptional Best-Selling Fonts Complete
// Latinotype
odyright / mysql.database.yml
Created Aug 6, 2018 — forked from jwo/mysql.database.yml
Sample config/database.yml from Rails. Postgres, MySQL, and SQLite
View mysql.database.yml
# Install the MYSQL driver
# gem install mysql2
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
# And be sure to use new-style password hashing:
View index.html
dataLayer = [
showOlarkChatWidget: "false",
segmentIoWriteKey: "vcssqufwsp",
serverType: "LIVE",
isUserLoggedIn: false
View gist:fb09d68776fbe06cb516f260eb9f9aa7
"countries": [
"country": "Afghanistan",
"states": ["Badakhshan", "Badghis", "Baghlan", "Balkh", "Bamian", "Daykondi", "Farah", "Faryab", "Ghazni", "Ghowr", "Helmand", "Herat", "Jowzjan", "Kabul", "Kandahar", "Kapisa", "Khost", "Konar", "Kondoz", "Laghman", "Lowgar", "Nangarhar", "Nimruz", "Nurestan", "Oruzgan", "Paktia", "Paktika", "Panjshir", "Parvan", "Samangan", "Sar-e Pol", "Takhar", "Vardak", "Zabol"]
"country": "Albania",
"states": ["Berat", "Dibres", "Durres", "Elbasan", "Fier", "Gjirokastre", "Korce", "Kukes", "Lezhe", "Shkoder", "Tirane", "Vlore"]
odyright /
Created Mar 20, 2018 — forked from jpbecotte/
Vue-cli 3, Phoenix 1.3, a complete how-to


I have been struggling to start a new project with Phoenix 1.3 and the new vue-cli 3 for Vue.js. There are tons of example already but none of them suited my needs, because:

  • I want to use the new Vue-cli to select the features that I want,
  • I do NOT want to setup Webpack (I know, what a shame!). The new Vue-cli includes the new vue-cli-service, which uses an instance of webpack-dev-server, so you don't have to import it manually in your project.
  • I do not want to use Brunch.

Create your Phoenix App

Assuming that you have Elixir and Phoenix 1.3 are both installed, let's build our new App.

odyright / Phoenix
Created Feb 21, 2018 — forked from nikneroz/Phoenix
Elixir + Phoenix Framework 1.3 + Guardian + JWT(Refresh, Revoke, Recover) + Comeonin
View Phoenix

Elixir + Phoenix Framework 1.3 + Guardian + JWT(Refresh, Revoke, Recover) + Comeonin

User model bootstrap

Let's generate User model and controller.

mix ecto.create
mix phoenix.gen.json Accounts User users email:string password_hash:string
You can’t perform that action at this time.