Inspired by An Alternative to npm Private Modules
./package.json:
{
console.log("hi"); |
# c++ | |
string sslCert = "some large random string" | |
int ssl_xor[10]; | |
fill(ssl_xor, ssl_xor + 10, 0); | |
for (int i = 0; i < sslCert.size(); i += 10) { | |
for (int j = 0; j < 10 && i + j < sslCert.size(); j++) { | |
ssl_xor[j] = ssl_xor[j] ^ (int)sslCert[i + j]; | |
} | |
} |
E/SQLiteLog: (1555) abort at 13 in [INSERT INTO service(name,price,description,is_deleted,id,is_new) VALUES (?,?,?,?,?,?)]: UNIQUE constraint failed: service.id | |
E/SQLiteDatabase: Error inserting name=null price=3000 description=null is_deleted=false id=56 is_new=false | |
android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: service.id (code 1555) | |
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method) | |
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:791) | |
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788) | |
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86) | |
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1501) | |
at android.database.sqlite.SQLiteDatabase.insert( |
// No Data | |
# app/models/stat.rb | |
class Stat | |
def calculate! | |
raise "implement" | |
end |
0000ff0e-0000-1000-8000-00805f9b34fb |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-4 col-md-offset-4"> | |
<div class="login-panel panel panel-default"> | |
<div class="panel-heading"> | |
<h3 class="panel-title">Please Sign In</h3> | |
</div> | |
<div class="panel-body"> | |
<form role="form"> | |
<fieldset> |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise | |
Component lifecycle | |
State, props | |
https://getbootstrap.com/docs/4.0/getting-started/introduction/ | |
https://codeburst.io/es5-vs-es6-with-example-code-9901fa0136fc |
Inspired by An Alternative to npm Private Modules
./package.json:
{
// initial array | |
const a = [1, [2, 3], ["4", [5, 6, 7, [8, 9]]]]; | |
// recursive function wich takes result array and inserts non-array items to it | |
function rec(result, arr) { | |
for (let i=0; i<arr.length; ++i) { | |
if (Array.isArray(arr[i])) | |
rec(result, arr[i]); | |
else | |
result.push(arr[i]); |