A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);To run this, you can try:
curl -ks https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh | bash
I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.
Alternatively,
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
| .controller('DashCtrl', function($scope, $ionicPlatform, $cordovaGeolocation) { | |
| var watch; | |
| var watchOptions = { | |
| timeout : 5000, | |
| maximumAge: 3000, | |
| enableHighAccuracy: true // may cause errors if true | |
| }; | |
| var pollCurrentLocation = function() { | |
| $cordovaGeolocation.getCurrentPosition(watchOptions) |
| var myApp = angular.module('myApp').service('CordovaNetwork', ['$ionicPlatform', '$q', function($ionicPlatform, $q) { | |
| // Get Cordova's global Connection object or emulate a smilar one | |
| var Connection = window.Connection || { | |
| "CELL" : "cellular", | |
| "CELL_2G" : "2g", | |
| "CELL_3G" : "3g", | |
| "CELL_4G" : "4g", | |
| "ETHERNET" : "ethernet", | |
| "NONE" : "none", | |
| "UNKNOWN" : "unknown", |
| #!/bin/sh | |
| set -e | |
| set -x | |
| for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
| do | |
| npm -g install "$package" | |
| done |
| # How to uninstall Razer Synapse ( http://www.razerzone.com/synapse/ ) | |
| # on OS X El Capitan without using Razer's official uninstall tool. | |
| # Tested on OS X 10.11.5 in July 2016. | |
| # Step 1: In your terminal: stop and remove launch agents | |
| launchctl remove com.razer.rzupdater | |
| launchctl remove com.razerzone.rzdeviceengine | |
| sudo rm /Library/LaunchAgents/com.razer.rzupdater.plist | |
| sudo rm /Library/LaunchAgents/com.razerzone.rzdeviceengine.plist |
| local function getOS() | |
| local raw_os_name, raw_arch_name = '', '' | |
| -- LuaJIT shortcut | |
| if jit and jit.os and jit.arch then | |
| raw_os_name = jit.os | |
| raw_arch_name = jit.arch | |
| else | |
| -- is popen supported? | |
| local popen_status, popen_result = pcall(io.popen, "") |
| #include <sol.hpp> | |
| #include <string> | |
| #include <iostream> | |
| using EntityId = int; | |
| class Entity { | |
| public: | |
| explicit Entity(EntityId id) : | |
| name("John"), id(id) |
| Handles = {} | |
| local memoizedFuncs = {} | |
| -- metatable which does magic | |
| local mt = {} | |
| mt.__index = function(handle, key) | |
| if not handle.isValid then | |
| print(debug.traceback()) | |
| error("Error: handle is not valid!", 2) | |
| end |