Let:
t= the plaintext (the text we want to send)p= the public key, whose secret key iss.s= the secret key, whose public key ispc= The cypher text (AKA the encrypted string)
| #include<stdio.h> | |
| #define ARR_SIZE 6 | |
| void print_r(int *arr, size_t n); | |
| void insertion_sort(int *arr, size_t n, size_t i); | |
| int main(){ | |
| int nums[ARR_SIZE] = {2,8,9,0,0,2}; | |
| print_r(nums, ARR_SIZE); |
| <?php | |
| function insertion_sort($a, $n, $i){ | |
| if($i == $n-1){ | |
| // Nothing to do since we're looking at the last element. Just return | |
| // the array as-is. | |
| return $a; | |
| } | |
| else{ | |
| $sorted = insertion_sort($a, $n, $i+1); |
| #!/bin/bash | |
| cd | |
| wget "https://www.dropbox.com/download?plat=lnx.x86_64" -O dropbox.tar | |
| tar -zxf dropbox.tar | |
| wget "https://www.dropbox.com/download?dl=packages/dropbox.py" -O dropbox | |
| chmod +x dropbox | |
| sudo mv dropbox /usr/local/bin | |
| ~/.dropbox-dist/dropboxd |
| # Located in Lib/collections/__init__.py | |
| ################################################################################ | |
| ### OrderedDict | |
| ################################################################################ | |
| class _OrderedDictKeysView(KeysView): | |
| def __reversed__(self): | |
| yield from reversed(self._mapping) |
| {"latitude":30.3389,"longitude":-97.7707,"timezone":"America/Chicago","offset":-5,"currently":{"time":1426665547,"summary":"Drizzle","icon":"rain","nearestStormDistance":0,"precipIntensity":0.0059,"precipIntensityError":0.0009,"precipProbability":0.62,"precipType":"rain","temperature":66.78,"apparentTemperature":66.78,"dewPoint":64.57,"humidity":0.93,"windSpeed":3.16,"windBearing":163,"visibility":8.67,"cloudCover":0.87,"pressure":1016.84,"ozone":303.07},"minutely":{"summary":"Drizzle stopping in 5 min., starting again 20 min. later.","icon":"rain","data":[{"time":1426665540,"precipIntensity":0.0059,"precipIntensityError":0.0009,"precipProbability":0.62,"precipType":"rain"},{"time":1426665600,"precipIntensity":0.0054,"precipIntensityError":0.0012,"precipProbability":0.56,"precipType":"rain"},{"time":1426665660,"precipIntensity":0.0055,"precipIntensityError":0.0013,"precipProbability":0.56,"precipType":"rain"},{"time":1426665720,"precipIntensity":0.0053,"precipIntensityError":0.0016,"precipProbability":0.5,"p |
| set "touchscreenid=YOUR_TOUCHSCREEN_HARDWARE_ID_HERE" | |
| devcon status "%touchscreenid%" | findstr "running" | |
| if %errorlevel% == 0 ( | |
| devcon disable "%touchscreenid%" | |
| ) else ( | |
| devcon enable "%touchscreenid%" | |
| ) |
| from rest_framework import routers | |
| import inspect | |
| class DynamicRouter(routers.DefaultRouter): | |
| def get_routes(self, viewset): | |
| """ | |
| Augment `self.routes` with any dynamically generated routes. | |
| Returns a list of the Route namedtuple. | |
| """ |
| # ffmpeg -i ../codervox-fadeout.mp4 -i transition.mp4 -i themovie.mp4 -filter_complex '[0:v][0:a][1:v][1:a][2:v][2:a] concat=n=3:v=1:a=1 [v][a]' -map '[v]' -map '[a]' -c:v libx264 output.mp4 |
| # ffmpeg -i fademe.mp4 -filter_complex "[0:v] fade=in:st=0:d=1[ov]" -map "[ov]" -c:v libx264 -t 2 transition.mp4; ffmpeg -f lavfi -i aevalsrc=0 -i transition.mp4 -vcodec copy -acodec aac -map 0:0 -map 1:0 -shortest -strict experimental -y transition.mp4 | |