This file contains hidden or 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
| var makeCRCTable = function(){ | |
| var C; | |
| var CrcTable = []; | |
| for(var N =0; N < 256; N++){ | |
| C = N; | |
| for(var k =0; k < 8; k++){ | |
| C = ((C&1) ? (0xEDB88320 ^ (C >>> 1)) : (C >>> 1)); | |
| } | |
| CrcTable[N] = C; | |
| } |
This file contains hidden or 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
| pm disable 'com.android.settings/com.android.settings.Settings$SecuritySettingsActivity' | |
| pm disable 'com.android.settings/com.android.settings.Settings$ManageApplicationsActivity' | |
| pm disable com.android.packageinstaller |
This file contains hidden or 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
| -module(tpecdsa). | |
| -export([generate_priv/0,minify/1,calc_pub/2,sign/2,verify/3]). | |
| -export([secp256k1_ecdsa_sign/4, | |
| secp256k1_ecdsa_verify/3, | |
| secp256k1_ec_pubkey_create/2, | |
| secp256k1_ec_pubkey_create/1 | |
| ]). | |
| -ifdef(TEST). | |
| -include_lib("eunit/include/eunit.hrl"). |
This file contains hidden or 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
| -module(timetop). | |
| -export([top/2]). | |
| top(Duration, Count) -> | |
| OldPrio = erlang:process_flag(priority, high), | |
| Result = scheduled_time_top(Duration), | |
| erlang:process_flag(priority, OldPrio), | |
| lists:sublist(Result, Count). |
This file contains hidden or 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
| my @nn=("A ","Bb","B ","C ","C#", "D ","Eb","E ","F ","F#","G ","G#"); | |
| for(-48..39){ | |
| printf("%s %f\n",note($_),440*2**($_/12)); | |
| }; | |
| sub note { | |
| my $n=shift; | |
| return sprintf("%s%2d",$nn[($n%12)],int(($n+(12*4)+9)/12)-3); | |
| }; |
This file contains hidden or 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 Mojolicious::Plugin::Pipeline::CSSCompressor; | |
| use Mojo::Base 'Mojolicious::Plugin'; | |
| use CSS::Compressor 'css_compress'; | |
| sub register { | |
| my ($self, $app) = @_; | |
| # Register "css_compressor" filter | |
| $app->filter(css_compressor => sub { css_compress shift }); |
NewerOlder