Note: Yants now has its own repository.
This is a tiny type-checker for data in Nix, written in Nix.
Features:
Note: Yants now has its own repository.
This is a tiny type-checker for data in Nix, written in Nix.
Features:
Courtesy of [Wine Bugzilla #46842][1].
Set native overrides:
| #!/usr/bin/env python | |
| from gimpfu import * | |
| import math | |
| def python_gif_rotate(image, base_layer, rotation=360, amount=60, time=1000, clockwise=True, | |
| center_auto=True, center_x=0, center_y=0, auto_resize=True): | |
| step_rot = rotation / amount | |
| if not clockwise: |
exec - Returns last line of commands output
passthru - Passes commands output directly to the browser
system - Passes commands output directly to the browser and returns last line
shell_exec - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen - Opens read or write pipe to process of a command
proc_open - Similar to popen() but greater degree of control
pcntl_exec - Executes a program
| 1-In the github repo on Settings > Integration & Services, enable | |
| 2-Go to travisCI page and enable the repo | |
| 3-Configure the env variables on TravisCI so that it is not necessary to save credentials on github | |
| -in the project Settings on TravisCI, add the entry for netlify site id: NETLIFY_SITE_ID - <site_id from .netlify file generated on netlify create> | |
| -create a netlify access token for TravisCI | |
| -On Netlify Dashboard, Go to Account Settings > OAuth Applications (https://app.netlify.com/account/applications) > Personal access tokens and press New Access Token | |
| -Name it anything, but to make it easier the suggestion is name TravisCI. | |
| -Generate it and COPY it - you won’t see it again! | |
| -in the project Settings on TravisCI, add the entry for netlify personal access token generated for TravisCI: NETLIFY_ACCESS_TOKEN | |
| 4-Generate a .travis.yml file in the local repo |
These instructions are based on this article: https://www.alexruf.net/2016/05/23/setup-gogs-git-service.html.
Setup Raspberry Pi with minimal Raspbian image. You need to connect to the HDMI port and set the following:
sudo raspi-configThere you need to enable the SSH server and you should change the hostname.
| { config, pkgs, ... }: | |
| let | |
| # Import unstable channel. | |
| # sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable | |
| # sudo nix-channel --update nixpkgs-unstable | |
| unstable = import <nixpkgs-unstable> {}; | |
| in | |
| { |
| const functions = require('firebase-functions'); | |
| const admin = require('firebase-admin'); | |
| admin.initializeApp(functions.config().firebase); | |
| /** | |
| * Triggers when new subject added in the list and sends a notification. | |
| */ | |
| exports.sendNotification = functions.database.ref('/subjects/{subjectKey}').onWrite((event) => { |
| package auth | |
| import ( | |
| "context" | |
| "net/http" | |
| "strings" | |
| "google.golang.org/grpc/metadata" | |
| "github.com/andela/micro-api-gateway/pb/authorization" |