This file contains 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
#!/usr/bin/env elixir | |
Mix.install( | |
[ | |
{:phoenix_playground, "~> 0.1.5"}, | |
{:jason, "~> 1.3"} | |
], | |
config: [ | |
mime: [ | |
types: %{ | |
"text/event-stream" => ["sse"] |
This file contains 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
#!/usr/bin/env python3 | |
# | |
# Nokia/Alcatel-Lucent router backup configuration tool | |
# | |
# Features: | |
# - Unpack/repack .cfg files generated from the backup and restore functionnality | |
# in order to modify the full router configuration | |
# - Decrypt/encrypt the passwords/secret values present in the configuration |
This file contains 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
Paprika Dataset Zip |
This file contains 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
{ | |
"id": 126103, | |
"date": "2020-09-06T08:18:22.000+0000", | |
"formattedDate": "Sep 06, 2020 - 14:03 PM", | |
"processDate": "2020-09-06T08:18:22.000+0000", | |
"formattedProcessDate": "Sep 06, 2020 - 14:03 PM", | |
"amount": -10.000000, | |
"formattedAmount": "-10.00 NPR", | |
"transferType": { | |
"id": 41, |
This file contains 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
<select name="timezone" class="settings-input" id="accounts-team-timezone"> | |
<!-- Popular Timezones </option> --> | |
<option value="America/Los_Angeles">(GMT-08:00) Pacific Time (US & Canada)</option> | |
<option value="US/Mountain">(GMT-07:00) Mountain Time (US & Canada)</option> | |
<option value="US/Central">(GMT-06:00) Central Time (US & Canada)</option> | |
<option value="US/Eastern">(GMT-05:00) Eastern Time (US & Canada)</option> | |
<option value="Europe/London">(GMT+00:00) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London</option> | |
<option value="Africa/Nairobi">(GMT+03:00) Nairobi</option> | |
<option value="Asia/Kolkata">(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi</option> |
This file contains 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
package main | |
/* | |
Copyright 2017 Shapath Neupane (@theshapguy) | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. |
This file contains 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
Last login: Mon Oct 17 11:48:45 on ttys001 | |
adb shell am start -n com.android.settings/.DevelopmentSettings | |
shapath@neupane: | |
[~]: adb shell am start -n com.android.settings/.DevelopmentSettings | |
Starting: Intent { cmp=com.android.settings/.DevelopmentSettings } | |
shapath@neupane: | |
[~]: adb shell am force-stop io.shap.saturn.debug; adb shell setprop debug.hwui.overdraw show | |
shapath@neupane: | |
[~]: adb shell am force-stop io.shap.saturn.debug; adb shell setprop debug.hwui.overdraw false |
This file contains 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
object FontUtil { | |
private val sTypefaceCache = HashMap<String, Typeface>() | |
fun getOTF(context: Context, font: String): Typeface { | |
if (!sTypefaceCache.containsKey(font)) { | |
val tf = Typeface.createFromAsset( | |
context.applicationContext.assets, "fonts/%s.otf".format(font)) | |
sTypefaceCache.put(font, tf) | |
} |