Skip to content

Instantly share code, notes, and snippets.

View izelnakri's full-sized avatar
🇺🇦
Ember.js is the best.

Izel Nakri | izelnakri.eth izelnakri

🇺🇦
Ember.js is the best.
View GitHub Profile
@akaihola
akaihola / nixos-x1.rst
Last active April 23, 2025 15:56
Installing NixOS on a Lenovo ThinkPad Carbon X1 Gen 9
@ashtom
ashtom / hadge.rb
Last active January 2, 2025 03:30
Update a pinned gist to show your currently workout stats
require 'csv'
require 'octokit'
require 'optparse'
class DirectImporter
DISPLAYED_ACTIVITIES = {
Running: '‍🏃‍♂️',
Walking: '🚶‍♂️',
Hiking: '🥾',
Cycling: '🚴‍♂️',
@davidhq
davidhq / seedprotect.js
Last active September 26, 2020 00:02
seedprotect.js
const crypto = require('crypto');
function lpad(str, padString, length) {
while (str.length < length) str = padString + str;
return str;
}
// converts string '1100' to integer 12
function binaryToByte(bin) {
return parseInt(bin, 2);
@Pulimet
Pulimet / AdbCommands
Last active April 26, 2025 13:51
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@bchase
bchase / new_phoenix_dot_iex.exs
Last active October 26, 2016 19:08
Officially tired of aliasing `Repo` and importing `Ecto.Query` by hand every IEx session
#!/usr/bin/env elixir
ecto_import = "import Ecto.Query, only: [from: 2]"
mixexs =
Path.join(["mix.exs"])
|> File.read!
namespace =
Regex.run(~r{defmodule\s+(\w+)\.}, mixexs)
@kristianmandrup
kristianmandrup / Converting libraries to Ember CLI addons.md
Last active March 12, 2025 04:26
Guide to Developing Addons and Blueprints for Ember CLI

Converting libraries to Ember CLI addons

In this guide we will cover two main cases:

  • Ember specific library
  • vendor library

Ember library

The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.

<!DOCTYPE html>
<html>
<style>
body { margin:0; }
canvas { display:block; }
</style>
<body>
<canvas id="canvas"></canvas>
<script type="text/javascript" charset="utf-8">
window.onload = function() {
@emad-elsaid
emad-elsaid / worm.rb
Created March 19, 2014 12:15
Worm game in under 50 line of code in ruby
#!/usr/bin/env ruby
require 'gosu' # gem install gosu --no-document
include Gosu
$dimension, $splits = 200, 20
$size = $dimension.to_f / $splits.to_f
class Worm
attr_writer :dir
def initialize() reset end
var gulp = require('gulp');
// Let's make things more readable by
// encapsulating each part's setup
// in its own method
function startExpress() {
var express = require('express');
var app = express();
app.use(express.static(__dirname));