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
print('\n'.join | |
([''.join | |
([('Devaraj' [(x-y)%7 ] | |
if((x*0.05)**2+(y*0.1)**2-1) | |
**3-(x*0.05)**2*(y*0.1) | |
**3<=0 else' ') | |
for x in range(-30,30) ]) | |
for y in range(15,-15,-1)])) |
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
mv -v ~/Library/Application\ Support/.ffuserdata ~/.Trash |
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
vizfile=$(ls *.pbiviz) | |
mv -- "$vizfile" viz.zip | |
unzip viz.zip | |
guidfile=$(ls resources) | |
echo $guidfile | |
arrIN=(${guidfile//./ }) | |
guid=${arrIN[0]} | |
echo $guid | |
pkg=package.json | |
sed -i -- "s/${guid}/mov${guid}/g" "${pkg}" |
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
arch=$(uname -m) | |
if [ "$arch" == "i686" -o "$arch" == "i386" -o "$arch" == "i486" -o "$arch" == "i586" ]; then | |
flag=1 | |
else | |
flag=0 | |
fi | |
echo "Installing OpenCV 2.4.5" | |
sudo apt-get update | |
mkdir OpenCV | |
cd OpenCV |
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
const path = require('path'); | |
const fs = require('fs-extra'); | |
const packageJsonsToUpdate = ['./ibcslibrary/packages/matrix-app/package.json', './ibcslibrary/packages/matrix-core/package.json', './ibcslibrary/packages/matrix-playground/package.json', './ibcslibrary/lerna.json',]; | |
const bumpVersion = (oldVersionNumber) => { | |
let versionParts = oldVersionNumber.split('.'); | |
var vArray = { | |
vMajor: versionParts[0], | |
vMinor: versionParts[1], | |
vPatch: versionParts[2], |
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
import powerbi from "powerbi-visuals-api"; | |
import IVisualLicenseManager = powerbi.extensibility.IVisualLicenseManager; | |
import LicenseNotificationType = powerbi.LicenseNotificationType; | |
import LicenseInfoResult = powerbi.extensibility.visual.LicenseInfoResult; | |
interface IDisplayedNotification { | |
isIconDisplayed: boolean; | |
isBlockerDisplayed: boolean; |
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
from pytube import YouTube | |
DOWNLOAD_FOLDER = "/Users/devarajns/Downloads" | |
video_url = "https://www.youtube.com/watch?v=6Se3SmOkAII" | |
video_obj = YouTube(video_url), | |
stream = video_obj.streams.get_highest_resolution() | |
stream.download(DOWNLOAD_FOLDER) |
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
சுழிகுளம்' என்ற சித்திரக் கவிக்குப் பரிதிமாற் கலைஞர் தரும் எடுத்துக் காட்டுச் | |
செய்யுள் இது | |
"கமுதி யார் பா வே | |
விலையரு மா நற்பா | |
முயல் வ துறுநர் |
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
visualbis | |
N.S.Devaraj | |
build591 | |
Publish npm package | |
15s | |
#!/bin/bash -eo pipefail | |
if [ "${CIRCLE_PROJECT_USERNAME}" == "visualbis" ]; then | |
npm run build && npm publish | |
else |
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
1. Connect the device to the same Wi-Fi as your computer | |
2. Get your device IP address (in Settings → About phone → Status) | |
3. Enable adb over TCP/IP on your device: adb tcpip 5555 | |
4. Connect to your device: adb connect DEVICE_IP:5555 (replace DEVICE_IP) | |
5. Unplug your device | |
6. Run scrcpy as usual | |
To switch back to USB mode: adb usb. |